In mathematics, the doubly triangular numbers are the numbers that appear within the sequence of triangular numbers, in positions that are also triangular numbers. That is, if T n = n ( n + 1 ) / 2 {\displaystyle T_{n}=n(n+1)/2} denotes the n {\displaystyle n} th triangular number, then the doubly triangular numbers are the numbers of the form T T n {\displaystyle T_{T_{n}}} .
The doubly triangular numbers form the sequence[1]
The n {\displaystyle n} th doubly triangular number is given by the quartic formula[2] T T n = n ( n + 1 ) ( n 2 + n + 2 ) 8 . {\displaystyle T_{T_{n}}={\frac {n(n+1)(n^{2}+n+2)}{8}}.}
The sums of row sums of Floyd's triangle give the doubly triangular numbers. Another way of expressing this fact is that the sum of all of the numbers in the first n {\displaystyle n} rows of Floyd's triangle is the n {\displaystyle n} th doubly triangular number.[1][2]
A formula for the sum of the reciprocals of the doubly triangular numbers is given by ∑ n = 1 ∞ 1 T T n = ∑ n = 1 ∞ 8 n ( n + 1 ) ( n 2 + n + 2 ) = 6 − 4 π 7 tanh ( π 7 2 ) . {\displaystyle \sum _{n=1}^{\infty }{\frac {1}{T_{T_{n}}}}=\sum _{n=1}^{\infty }{\frac {8}{n\left(n+1\right)\left(n^{2}+n+2\right)}}=6-{\frac {4\pi }{\sqrt {7}}}\tanh \left({\frac {\pi {\sqrt {7}}}{2}}\right).}
Doubly triangular numbers arise naturally as numbers of unordered pairs of unordered pairs of objects, including pairs where both objects are the same:
When pairs with both objects the same are excluded, a different sequence arises, the tritriangular numbers 3 , 15 , 45 , 105 , … {\displaystyle 3,15,45,105,\dots } which are given by the formula ( ( n 2 ) 2 ) {\textstyle {\binom {\binom {n}{2}}{2}}} .[5]
Some numerologists and biblical studies scholars consider it significant that 666, the number of the beast, is a doubly triangular number.[6][7]