login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A024123
a(n) = 10^n - n^9.
2
1, 9, -412, -18683, -252144, -1853125, -9077696, -30353607, -34217728, 612579511, 9000000000, 97642052309, 994840219648, 9989395500627, 99979338953216, 999961556640625, 9999931280523264, 99999881412123503
OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (20,-145,570,-1410,2352,-2730,2220,-1245,460,-101,10).
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 *)
PROG
(Magma) [10^n-n^9: n in [0..20]]; // Vincenzo Librandi, Jul 01 2011
(PARI) a(n)=10^n-n^9 \\ Charles R Greathouse IV, Jul 01 2011
CROSSREFS
Sequence in context: A035024 A179433 A091061 * A218140 A292073 A232249
KEYWORD
sign,easy
STATUS
approved