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”).
%I #14 Sep 08 2022 08:44:48
%S 1,9,92,973,9936,99875,999784,9999657,99999488,999999271,9999999000,
%T 99999998669,999999998272,9999999997803,99999999997256,
%U 999999999996625,9999999999995904,99999999999995087,999999999999994168,9999999999999993141,99999999999999992000
%N a(n) = 10^n - n^3.
%H Vincenzo Librandi, <a href="/A024117/b024117.txt">Table of n, a(n) for n = 0..300</a>
%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (14,-46,64,-41,10).
%F From _Colin Barker_, Oct 05 2018: (Start)
%F G.f.: (1 - 5*x + 12*x^2 + 35*x^3 + 11*x^4) / ((1 - x)^4*(1 - 10*x)).
%F a(n) = 14*a(n-1) - 46*a(n-2) + 64*a(n-3) - 41*a(n-4) + 10*a(n-5) for n>4.
%F (End)
%o (Magma) [10^n-n^3: n in [0..20]]; // _Vincenzo Librandi_, Jun 30 2011
%o (PARI) Vec((1 - 5*x + 12*x^2 + 35*x^3 + 11*x^4) / ((1 - x)^4*(1 - 10*x)) + O(x^30)) \\ _Colin Barker_, Oct 05 2018
%K nonn,easy
%O 0,2
%A _N. J. A. Sloane_