A017298 a(n) = (10*n + 2)^6.
64, 2985984, 113379904, 1073741824, 5489031744, 19770609664, 56800235584, 139314069504, 304006671424, 606355001344, 1126162419264, 1973822685184, 3297303959104, 5289852801024, 8198418170944
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
- Index entries for linear recurrences with constant coefficients, signature (7, -21, 35, -35, 21, -7, 1).
Programs
-
Magma
[(10*n+2)^6: n in [0..25]]; // Vincenzo Librandi, Jul 30 2011
-
Mathematica
(10*Range[0,20]+2)^6 (* or *) LinearRecurrence[{7,-21,35,-35,21,-7,1},{64,2985984,113379904,1073741824,5489031744,19770609664,56800235584},20] (* Harvey P. Dale, Aug 12 2012 *)
-
Python
for n in range(0, 25): print((10*n + 2)**6, end=", ") # Stefano Spezia, Oct 20 2018
Formula
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7); a(0)=64, a(1)=2985984, a(2)=113379904, a(3)=1073741824, a(4)=5489031744, a(5)=19770609664, a(6)=56800235584. - Harvey P. Dale, Aug 12 2012