OFFSET
0,3
COMMENTS
For n>1 number of 7-digit positive integers in base n.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
a(n) = n^6*(n-1) = n^7 - n^6.
G.f.: 2*(32*x^2 + 473*x^3 + 1208*x^4 + 718*x^5 + 88*x^6 + x^7)/(x - 1)^8. - Wesley Ivan Hurt, Aug 03 2014
Recurrence: a(n) = 8*a(n-1)-28*a(n-2)+56*a(n-3)-70*a(n-4)+56*a(n-5)-28*(n-6)+8*a(n-7)-a(n-8). - Wesley Ivan Hurt, Aug 03 2014
Sum_{n>=2} 1/a(n) = 6 - Sum_{k=2..6} zeta(k). - Amiram Eldar, Jul 05 2020
MAPLE
MATHEMATICA
Table[n^7 - n^6, {n, 0, 30}] (* Wesley Ivan Hurt, Aug 03 2014 *)
CoefficientList[Series[2 (32*x^2 + 473*x^3 + 1208*x^4 + 718*x^5 + 88*x^6 + x^7)/(x - 1)^8, {x, 0, 30}], x] (* Wesley Ivan Hurt, Aug 03 2014 *)
PROG
(PARI) vector(100, n, (n-1)^7 - (n-1)^6) \\ Derek Orr, Aug 03 2014
(Magma) [n^7-n^6 : n in [0..30]]; // Wesley Ivan Hurt, Aug 03 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Martin Renner, Aug 03 2014
STATUS
approved