This site is supported by donations to The OEIS Foundation.

Triangular numbers

From OeisWiki
(Redirected from Triangular number)
Jump to navigationJump to search


This article needs more work.

Please help by expanding it!


The nth triangular number is defined as the sum of the first n positive integers

tn:=i=1ni=n(n+1)2=(n+12),n0,

where t0=0 since it is the empty sum of positive integers (giving the additive identity, i.e. 0), and (nk) is a binomial coefficient. The nth triangular number is thus one half of the nth pronic number (or oblong number).

A000217 Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n, n ≥ 0.

{0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, 351, 378, 406, 435, 465, 496, 528, , 561, 595, 630, 666, 703, 741, 780, ...}

This was proved by Euler, by the following trick:

    1,   2,   3, ..., n-2, n-1,   n
 +  n, n-1, n-2, ...,   3,   2,   1
 ----------------------------------
  n+1, n+1, n+1, ..., n+1, n+1, n+1

thus t_n = n*(n+1)/2.

That proof is sometimes also credited to Carl Friedrich Gauß:

Theorem. The sum of the first n positive integers (the nth triangular number tn) is equal to n2+n2.

Proof. (Gauß) We can write tn=1+2+3++(n1)+n. Since addition is commutative, we can also write tn=n+(n1)++3+2+1. If we add up these expressions term by term, left to right, we obtain 2tn=(1+n)+(2+(n1))++((n1)+2)+(n+1). Each of these parenthesized addends works out to n+1 and there are n of these addends. Therefore, 2tn=n(n+1)=n2+n and dividing both sides by 2 we get tn=n2+n2 as specified by the theorem. □ [1]

Relations

[edit]
tntn1=n,n1.
tn2tn1+tn2=1,n2.
tn+tn1=n2,n1.
tntn1=n+1n1,n1.

Relations involving binomial coefficients

[edit]

Charles Marion <[email protected]> suggested the following two relations:

k=0m(1)k(mmk)tnk=0, nm>2,
k=0m(mmk)tnk=k=0m1(m1mk1)(nk)2, nm>0,

where m=1 gives tn+tn1=n2.

Sum of reciprocals

[edit]

The partial sums of the reciprocals of the triangular numbers gives (easily proved by induction)

i=1n1ti=n2tn.

The sum of the reciprocals of the triangular numbers converges to 2

limni=1n1tn=limnn2tn=limn2n2n(n+1)=2.

Representations of natural numbers as a sum of three triangular numbers

[edit]

Every natural number may be represented, in at least one way, as a sum of three triangular numbers (with up to three nonzero triangular numbers).

Representations of n as a sum of three triangular numbers
n Representations Number of
representations
0 { {0, 0, 0} } 1
1 { {1, 0, 0} } 1
2 { {1, 1, 0} } 1
3 { {3, 0, 0}, {1, 1, 1} } 2
4 { {3, 1, 0} } 1
5 { {3, 1, 1} } 1
6 { {6, 0, 0}, {3, 3, 0} } 2
7 { {6, 1, 0}, {3, 3, 1} } 2
8 { {6, 1, 1} } 1
9 { {6, 3, 0}, {3, 3, 3} } 2
10 { {10, 0, 0}, {6, 3, 1} } 2
11 { {10, 1, 0} } 1
12 { {10, 1, 1}, {6, 6, 0}, {6, 3, 3} } 3
13 { {10, 3, 0}, {6, 6, 1} } 2
14 { {10, 3, 1} } 1
15 { {15, 0, 0}, {6, 6, 3} } 2
16 { {15, 1, 0}, {10, 6, 0}, {10, 3, 3} } 3


A002636 Number of representations of n as a sum of up to three nonzero triangular numbers.

{1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 2, 1, 3, 2, 1, 2, 3, 2, 2, 2, 1, 4, 3, 2, 2, 2, 2, 3, 3, 1, 4, 4, 2, 2, 3, 2, 3, 4, 2, 3, 3, 2, 4, 3, 2, 4, 4, 2, 4, 4, 1, 4, 5, 1, 2, 3, 4, 6, 4, 3, 2, 5, 2, 3, 3, 3, 6, 5, 2, 2, 5, 3, 5, 4, 2, 4, 5, 3, 4, ...}

Even perfect numbers

[edit]

Every even perfect number is a triangular number, since they are a subset of

2n1(2n1)=(2n1)2n2=t2n1,

where 2n1 is [necessarily, but not sufficiently] a Mersenne prime.

Every even perfect number is also an hexagonal number, since they are a subset of

2n1(2n1)=2n1(22n11)=h2n1,

where 2n1 is [necessarily, but not sufficiently] a Mersenne prime.

See also

[edit]

Notes

[edit]
  1. Antonella Cupillari, The Nuts and Bolts of Proofs, Belmont, California: Wadsworth Publishing Company (1989): 13–14.
[edit]