A024123 a(n) = 10^n - n^9.
1, 9, -412, -18683, -252144, -1853125, -9077696, -30353607, -34217728, 612579511, 9000000000, 97642052309, 994840219648, 9989395500627, 99979338953216, 999961556640625, 9999931280523264, 99999881412123503
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..300
- Index entries for linear recurrences with constant coefficients, signature (20,-145,570,-1410,2352,-2730,2220,-1245,460,-101,10).
Programs
-
Magma
[10^n-n^9: n in [0..20]]; // Vincenzo Librandi, Jul 01 2011
-
Mathematica
Table[10^n-n^9,{n,0,30}] (* or *) LinearRecurrence[ {20,-145,570,-1410,2352,-2730,2220,-1245,460,-101,10},{1,9,-412,-18683,-252144,-1853125,-9077696,-30353607,-34217728,612579511,9000000000},30] (* Harvey P. Dale, Feb 06 2014 *)
-
PARI
a(n)=10^n-n^9 \\ Charles R Greathouse IV, Jul 01 2011