A064322 Triply triangular numbers.
0, 1, 21, 231, 1540, 7260, 26796, 82621, 222111, 536130, 1186570, 2445366, 4747821, 8763391, 15487395, 26357430, 43398586, 69401871, 108140571, 164629585, 245433090, 359026206, 516216646, 730632651, 1019283825, 1403201800, 1908167976, 2565535896, 3413156131
Offset: 0
Examples
a(4) = 1540 because 4th triangular number is 10, 10th triangular number is 55 and 55th triangular number is 1540.
Links
- Harry J. Smith, Table of n, a(n) for n = 0..400
- Index entries for linear recurrences with constant coefficients, signature (9,-36,84,-126,126,-84,36,-9,1).
Programs
-
Maple
a:= n-> ((k-> binomial(k+1,2))@@3)(n): seq(a(n), n=0..30); # Alois P. Heinz, Apr 19 2012
-
Mathematica
f[n_] := n(n + 1)/2; Table[ Nest[f, n, 3], {n, 0, 25}] (* Robert G. Wilson v, Jun 30 2004 *)
-
PARI
a(n) = { my(Tri(m)= m*(m + 1)/2); Tri(Tri(Tri(n))) } \\ Harry J. Smith, Sep 11 2009