login
a(n) = 10^n - n^6.
2

%I #23 Sep 08 2022 08:44:48

%S 1,9,36,271,5904,84375,953344,9882351,99737856,999468559,9999000000,

%T 99998228439,999997014016,9999995173191,99999992470464,

%U 999999988609375,9999999983222784,99999999975862431,999999999965987776

%N a(n) = 10^n - n^6.

%H Vincenzo Librandi, <a href="/A024120/b024120.txt">Table of n, a(n) for n = 0..300</a>

%H <a href="/index/Rec#order_08">Index entries for linear recurrences with constant coefficients</a>, signature (17,-91,245,-385,371,-217,71,-10)

%F G.f.: ( 1 - 8*x - 26*x^2 + 233*x^3 + 2753*x^4 + 2942*x^5 + 576*x^6 + 9*x^7 ) / ( (10*x-1)*(x-1)^7 ). - _R. J. Mathar_, Jun 30 2011

%t Table[10^n-n^6,{n,0,30}] (* or *) LinearRecurrence[ {17,-91,245,-385,371,-217,71,-10},{1,9,36,271,5904,84375,953344,9882351},30] (* _Harvey P. Dale_, Oct 09 2012 *)

%o (Magma) [10^n-n^6: n in [0..20]]; // _Vincenzo Librandi_, Jun 30 2011

%o (PARI) a(n) = 10^n-n^6; \\ _Altug Alkan_, Oct 04 2018

%Y Cf. A001014 (n^6), A011557 (10^n).

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_