A024119 a(n) = 10^n - n^5.
1, 9, 68, 757, 8976, 96875, 992224, 9983193, 99967232, 999940951, 9999900000, 99999838949, 999999751168, 9999999628707, 99999999462176, 999999999240625, 9999999998951424, 99999999998580143, 999999999998110432
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..300
- Index entries for linear recurrences with constant coefficients, signature (16,-75,170,-215,156,-61,10).
Programs
-
Magma
[10^n-n^5: n in [0..20]]; // Vincenzo Librandi, Jun 30 2011
-
Mathematica
Table[10^n-n^5,{n,0,20}] (* or *) LinearRecurrence[ {16,-75,170,-215,156,-61,10},{1,9,68,757,8976,96875,992224},20] (* Harvey P. Dale, Oct 08 2012 *)
-
PARI
a(n) = 10^n-n^5; \\ Altug Alkan, Oct 04 2018
Formula
G.f.: ( -1 + 7*x + x^2 - 174*x^3 - 649*x^4 - 253*x^5 - 11*x^6 ) / ( (10*x-1)*(x-1)^6 ). - R. J. Mathar, Jun 30 2011