Triangular numbers correspond to the first-degree case of
Faulhaber's formula. that even perfect numbers are triangular – as 2
n−1 is odd, they are also
hexagonal Alternating triangular numbers (1, 6, 15, 28, ...) are also hexagonal numbers. Every even
perfect number is triangular (as well as hexagonal), given by the formula M_p 2^{p-1} = \frac{M_p (M_p + 1)}2 = T_{M_p} where is a
Mersenne prime. No odd perfect numbers are known; hence, all known perfect numbers are triangular. For example, the third triangular number is (3 × 2 =) 6, the seventh is (7 × 4 =) 28, the 31st is (31 × 16 =) 496, and the 127th is (127 × 64 =) 8128. The final digit of a triangular number is 0, 1, 3, 5, 6, or 8, and thus such numbers never end in 2, 4, 7, or 9. A final 3 must be preceded by a 0 or 5; a final 8 must be preceded by a 2 or 7. In
base 10, the
digital root of a nonzero triangular number is always 1, 3, 6, or 9. Hence, every triangular number is either divisible by three or has a remainder of 1 when divided by 9: The digital root pattern for triangular numbers, repeating every nine terms, as shown above, is "1, 3, 6, 1, 6, 3, 1, 9, 9". The converse of the statement above is, however, not always true. For example, the digital root of 12, which is not a triangular number, is 3 and divisible by three. If is a triangular number, is an odd square, and , then is also a triangular number. Note that will always be a triangular number, because , which yields all the odd squares are revealed by multiplying a triangular number by 8 and adding 1, and the process for given is an odd square is the inverse of this operation. The first several pairs of this form (not counting ) are: , , , , , , ... etc. Given is equal to , these formulas yield , , , , and so on. The sum of the
reciprocals of all the nonzero triangular numbers is \sum_{n=1}^\infty{1 \over {{n^2 + n} \over 2}} = 2\sum_{n=1}^\infty{1 \over {n^2 + n}} = 2 . This can be shown by using the basic sum of a
telescoping series: \sum_{n=1}^\infty{1 \over {n(n+1)}} = 1 . In addition, the
nth partial sum of this series can be written as: 2n \over {n+1}. Two other formulas regarding triangular numbers are T_{a+b} = T_a + T_b + ab and T_{ab} = T_aT_b + T_{a-1}T_{b-1}, both of which can be established either by looking at dot patterns (see above) or with some simple algebra. In 1796, Gauss discovered that every positive integer is representable as a sum of three triangular numbers, writing in his diary his famous words, "
ΕΥΡΗΚΑ! ". The three triangular numbers are not necessarily distinct, or nonzero; for example 20 = 10 + 10 + 0. This is a special case of the
Fermat polygonal number theorem. The largest triangular number of the form is
4095 (see
Ramanujan–Nagell equation).
Wacław Franciszek Sierpiński posed the question as to the existence of four distinct triangular numbers in
geometric progression. It was conjectured by Polish mathematician
Kazimierz Szymiczek to be impossible and was later proven by Fang and Chen in 2007. Formulas involving expressing an integer as the sum of triangular numbers are connected to
theta functions, in particular the
Ramanujan theta function. The number of line segments between closest pairs of dots in the triangle can be represented in terms of the number of dots or with a
recurrence relation: L_n = 3 T_{n-1} = 3{n \choose 2};\qquad L_n = L_{n-1} + 3(n-1), ~L_1 = 0. In the
limit, the ratio between the two numbers, dots and line segments is \lim_{n\to\infty} \frac{T_n}{L_n} = \frac{1}{3}. ==Applications==