Skip to content

Squared Triangular Number

In number theory, the sum of the first cubes is the square of the th triangular number.

Version
v2 · 2026-11-14 · History
Domain-specific #
12228
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Number Theory, Figurate Numbers → Mathematics

Core Idea

A squared triangular number is the square of a triangular number, and such numbers arise as sums of consecutive cubes: in number theory, the sum of the first \(n\) cubes equals the square of the \(n\)th triangular number, $\(1^3+2^3+3^3+\cdots+n^3 = \left(1+2+3+\cdots+n\right)^2,\)$ or, in summation notation, \(\sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k\right)^2\). This identity is sometimes called Nicomachus's theorem, after Nicomachus of Gerasa (c. 60–120 CE). The sequence of squared triangular numbers begins 0, 1, 9, 36, 100, 225, 441, ...

Nicomachus observed that if the odd numbers are listed in order, the first is the cube of 1, the sum of the next two is the cube of 2, the sum of the next three is the cube of 3, and so on. It follows that the sum of the first \(n\) cubes is the sum of the first \(\tfrac{n(n+1)}{2}\) odd numbers. The average of these numbers is \(\tfrac{n(n+1)}{2}\), and there are \(\tfrac{n(n+1)}{2}\) of them, so their sum is \(\left(\tfrac{n(n+1)}{2}\right)^2\).

Geometrically, a square whose side is a triangular number can be partitioned into pieces whose areas are the successive cubes. The identity also appears in the work of Aryabhata and Al-Karaji. Squared triangular numbers should not be confused with square triangular numbers, which are triangular numbers that are themselves perfect squares.

How would you explain it like I'm…

Cubes Make a Square

Build little cubes of blocks: a 1-block cube, then a 2-by-2-by-2 cube, then a 3-by-3-by-3 cube. Count all the blocks together: 1 + 8 + 27 = 36. Now add 1 + 2 + 3 = 6, and make a square that is 6 by 6: that's 36 too! It always works, no matter how many cubes you stack up.

Cube Sums Are Squares

A cube number is a number times itself times itself, like 2x2x2 = 8. A triangular number is what you get by adding 1+2+3 and so on, like stacking a triangle of dots. The squared triangular number rule says: add up the first few cube numbers, and you get the square of the matching triangular number. For example, 1 + 8 + 27 = 36, and 1+2+3 = 6, and 6x6 = 36. It works for any number of cubes.

Sum of Cubes Equals Triangular Squared

The squared triangular number identity, sometimes called Nicomachus's theorem, says that the sum of the first n cubes equals the square of the n-th triangular number: 1^3 + 2^3 + ... + n^3 = (1 + 2 + ... + n)^2. The n-th triangular number is 1 + 2 + ... + n = n(n+1)/2, so the sum of cubes equals (n(n+1)/2)^2. For n = 4: 1 + 8 + 27 + 64 = 100 = 10^2. The fact is surprising because it links a sum of cubes to the square of a much simpler sum.

 

In number theory, the sum of the first n cubes equals the square of the n-th triangular number: sum_{k=1}^n k^3 = (sum_{k=1}^n k)^2. Since the n-th triangular number is T_n = n(n+1)/2, this gives the closed form sum k^3 = (n(n+1)/2)^2 = T_n^2. The identity is sometimes named Nicomachus's theorem after Nicomachus of Gerasa. It can be proved by induction or by counting arguments that arrange the cubes as blocks of consecutive numbers whose total is computed as count times average. What makes it this specific abstraction is the exact equation between the cube sum and the squared triangular number, not merely a resemblance among polynomial sums.

Structural Signature

Sig role-phrases:

  • Defining carrier — As observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an \(n\times n\) grid.
  • Constitutive relation — The number of squares in a square grid is similarly counted by the square pyramidal numbers.
  • Operating condition — The probabilities themselves are respectively the left and right sides of the Nichomachus identity, normalized to make probabilities by dividing both sides by \(n^4\).
  • Recognition evidence — gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers.
  • Admissible variation — obtains another proof by summing the numbers in a square multiplication table in two different ways.
  • Characteristic consequence — In the more recent mathematical literature, provides a proof using summation by parts. uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity.
  • Failure boundary — Stein observes that it may also be proved easily (but uninformatively) by induction, and states that provides "an interesting old Arabic proof". provides a purely visual proof, provide two additional proofs, and gives seven geometric proofs.

What It Is Not

  • Not the whole field of mathematics, logic, and statistics. The node requires the specific identity stated by In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number.
  • Not an over-broad reading. For instance, the points of a \(4\times 4\) grid (or a square made up of three smaller squares on a side) can form 36 different rectangles.
  • Not an over-broad reading. obtains another proof by summing the numbers in a square multiplication table in two different ways.
  • Not an over-broad reading. However, in no other case is one power sum a square of another.
  • Not automatically Sum of squares function. Retrieval proximity does not establish equivalence; the two identities must be compared by carrier, operation, and failure boundary.

Scope of Application

Squared Triangular Number applies literally inside mathematics, logic, and statistics wherever the source-defined carrier and relation can be established. Its documented habitats include:

  • History. The average of these numbers is obviously \(\tfrac{n(n+1)}{2}\), and there are \(\tfrac{n(n+1)}{2}\) of them, so their sum is \(\left(\tfrac{n(n+1)}{2}\right)^2\).
  • The sequence of squared triangular numbers is \(0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, \ldots\). These numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers.
  • The sequence of squared triangular numbers is \(0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, \ldots\). As observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an \(n\times n\) grid.
  • The sequence of squared triangular numbers is \(0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, \ldots\). For instance, the points of a \(4\times 4\) grid (or a square made up of three smaller squares on a side) can form 36 different rectangles.
  • The sequence of squared triangular numbers is \(0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, \ldots\). The number of squares in a square grid is similarly counted by the square pyramidal numbers.
  • The sequence of squared triangular numbers is \(0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, \ldots\). Let X,Y,Z,W be four integer numbers independently and uniformly chosen at random between 1 and n.

Outside mathematics, logic, and statistics, the name should be retained only when these same operational conditions survive; otherwise the comparison belongs to the broader parent Pattern or should be marked as analogy.

Clarity

A clear use of Squared Triangular Number names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number. The strongest recognition evidence is: gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers. A report should distinguish that evidence from a proxy, consequence, or common implementation. It should also state the qualification For instance, the points of a \(4\times 4\) grid (or a square made up of three smaller squares on a side) can form 36 different rectangles. so that a reader can reproduce the classification rather than infer it from topical resemblance.

Manages Complexity

Squared Triangular Number compresses multiple mathematics, logic, and statistics details into a stable diagnostic relation. The source shows both the central mechanism—the number of squares in a square grid is similarly counted by the square pyramidal numbers.—and the practical consequence—in the more recent mathematical literature, provides a proof using summation by parts. uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity. This compression makes cases comparable while leaving parameters, conventions, exceptions, and evidential quality explicit. It is lossy by design: local history and implementation details may be omitted only when they do not alter the defining relation.

Abstract Reasoning

  1. Type the carrier. Identify the mathematics, logic, and statistics entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number.
  3. Check operation and conditions. The probabilities themselves are respectively the left and right sides of the Nichomachus identity, normalized to make probabilities by dividing both sides by \(n^4\).
  4. Demand recognition evidence. gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers.
  5. Test variation. Change an implementation or setting while preserving obtains another proof by summing the numbers in a square multiplication table in two different ways.
  6. Run the collapse test. Remove the defining operation; if the label still seems equally apt, only a topic or correlate was retained.
  7. Reduce cautiously. When the specialist conditions cannot be carried, route the residual comparison to Pattern.

Knowledge Transfer

Within the home domain. Knowledge about Squared Triangular Number transfers literally when a new case preserves the same carrier type, relation, and recognition test. The average of these numbers is obviously \(\tfrac{n(n+1)}{2}\), and there are \(\tfrac{n(n+1)}{2}\) of them, so their sum is \(\left(\tfrac{n(n+1)}{2}\right)^2\). These numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers.

Beyond the home domain. No canonical parent is asserted for Squared Triangular Number. An outside case receives the specialist name only when the same typed roles and rejection conditions can be filled literally; otherwise the comparison remains an analogy pending later graph densification.

Examples

Canonical

However, in no other case is one power sum a square of another. This case is canonical because it supplies a concrete carrier and lets the defining relation be checked rather than merely named.

Mapped back: carrier → the entities in the documented case; operation → In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number; recognition evidence → gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers

Applied / In Practice

The average of these numbers is obviously \(\tfrac{n(n+1)}{2}\), and there are \(\tfrac{n(n+1)}{2}\) of them, so their sum is \(\left(\tfrac{n(n+1)}{2}\right)^2\). The applied case shows how the identity is used under a second setting or qualification while keeping the same operative relation.

Mapped back: changed setting → History; invariant → In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number; boundary → the case exits the class when for instance, the points of a \(4\times 4\) grid (or a square made up of three smaller squares on a side) can form 36 different rectangles

Structural Tensions

T1 — Stable identity versus admissible variation. For instance, the points of a \(4\times 4\) grid (or a square made up of three smaller squares on a side) can form 36 different rectangles. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Which changes preserve the defining relation, and which replace it?

T2 — Recognition versus proxy. obtains another proof by summing the numbers in a square multiplication table in two different ways. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the cited evidence establish the identity or only a correlated sign?

T3 — Definition versus implementation. However, in no other case is one power sum a square of another. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Is the observed implementation constitutive, optional, or merely common?

T4 — Scope versus overextension. He does not go further than this, but from this it follows that the sum of the first \(n\) cubes equals the sum of the first \(\tfrac{n(n+1)}{2}\) odd numbers, that is, the odd numbers from 1 to \(n(n+1)-1\). The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Can every claimed application fill the same typed roles without metaphor?

T5 — Transfer versus domain accent. As observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an \(n\times n\) grid. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the receiving case instantiate Squared Triangular Number literally, co-instantiate Pattern, or only resemble it?

T6 — Autonomy versus reduction. The number of squares in a square grid is similarly counted by the square pyramidal numbers. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: What does Squared Triangular Number distinguish that the broader parent Pattern leaves together?

Structural–Framed Character

Squared Triangular Number is structural-leaning. Its structural side is the repeatable organization summarized by In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number. Its framed side is the mathematics, logic, and statistics vocabulary that fixes the carrier, evidence, exceptions, and admissible transformations.

Evaluative weight: the identity can be stated descriptively even when applications carry practical stakes. Human-practice dependence: the source-grounded carrier determines whether the relation exists independently or is constituted by a practice. Institutional origin: disciplinary conventions stabilize the name and test. Vocabulary portability: The probabilities themselves are respectively the left and right sides of the Nichomachus identity, normalized to make probabilities by dividing both sides by \(n^4\). Import versus recognition: literal transfer requires the same mechanism; shape alone is analogy.

Its portable skeleton is Pattern. Its character: a recurring specialist identity whose thin organization can be abstracted, while its operational meaning remains domain-bound.

Structural Core vs. Domain Accent

What is skeletal. In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number. The stable skeleton is the typed relation expressed in that definition and the entry's recognition and collapse tests. The source identifies these operative conditions: As observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an \(n\times n\) grid. The number of squares in a square grid is similarly counted by the square pyramidal numbers. It further constrains recognition and variation through: The probabilities themselves are respectively the left and right sides of the Nichomachus identity, normalized to make probabilities by dividing both sides by \(n^4\). gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers.

What is domain-bound. mathematics, logic, and statistics supplies the operative entities, technical vocabulary, warrants, and exceptions that make Squared Triangular Number literal. Its documented scope includes the condition that The average of these numbers is obviously \(\tfrac{n(n+1)}{2}\), and there are \(\tfrac{n(n+1)}{2}\) of them, so their sum is \(\left(\tfrac{n(n+1)}{2}\right)^2\). Another bounded application condition is that These numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers. These are not decorative examples; they determine which carrier and evidence can fill the abstraction's roles.

Why no parent is asserted. Removing those specialist details does not currently yield one live catalog node that is a necessary genus for every instance. The entry is therefore approved as unparented rather than attached by topical resemblance. Its collapse evidence remains specific—obtains another proof by summing the numbers in a square multiplication table in two different ways.—and future graph densification may discover a defensible relation only if it preserves that boundary.

  • Approved unparented node. No current live node supplies a defensible necessary genus or structural prerequisite for Squared Triangular Number. The reviewed identity is: In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number. The accelerated suggestion was declined because topical or lexical similarity does not establish hierarchy; the node is admitted without a parent pending later graph densification.
  • Related reasoning operations. Evidence, representation, comparison, classification, transformation, or evaluation may participate in particular cases, but participation does not make any one of them a necessary parent of every instance.

Neighborhood in Abstraction Space

Squared Triangular Number sits in a moderately populated region (52nd percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Combinatorial Optimization & Discrete Structures (32 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Pattern. The parent omits the specialist differentia. Tell: Can the case establish In number theory, the sum of the first \(n\) cubes is the square of the \(n\)th triangular number?
  • Sum of squares function. Count ordered signed integer k-tuples whose squared coordinates sum to n, yielding the arithmetic function r_k(n) and its divisor-sum, theta-series, and local-obstruction structure. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Cube (algebra). The third power x³ of a number or algebraic expression, obtained by multiplying three equal factors and inverted on suitable domains by the cube-root operation. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Pascal's rule. Decompose the family of fixed-size subsets by whether they contain a distinguished element, yielding the binomial-coefficient recurrence that generates Pascal's triangle. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • A measurement, proxy, or consequence. Those may provide evidence without being the identity. Tell: Would Squared Triangular Number remain present if the detector or downstream effect changed?
  • A metaphorical analogue. A similar shape outside mathematics, logic, and statistics lacks the specialist mechanism. Tell: Do the native roles transfer literally, or only the parent Pattern?

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Squared_triangular_number (revision 1370583340).