This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A024063 #22 Sep 10 2024 14:43:37 %S A024063 1,5,34,213,1292,7771,46650,279929,1679608,10077687,60466166, %T A024063 362797045,2176782324,13060694003,78364164082,470184984561, %U A024063 2821109907440,16926659444719,101559956668398,609359740010477,3656158440062956,21936950640377835,131621703842267114,789730223053602793 %N A024063 a(n) = 6^n - n. %H A024063 Vincenzo Librandi, <a href="/A024063/b024063.txt">Table of n, a(n) for n = 0..500</a> %H A024063 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (8,-13,6). %F A024063 From _Vincenzo Librandi_, Jun 16 2013: (Start) %F A024063 G.f.: (1-3*x+7*x^2)/((1-6*x)*(1-x)^2). %F A024063 a(n) = 8*a(n-1) - 13*a(n-2) + 6*a(n-3). (End) %F A024063 E.g.f.: exp(x)*(exp(5*x) - x). - _Elmo R. Oliveira_, Sep 10 2024 %t A024063 Table[6^n - n, {n, 0, 30}] (* or *) CoefficientList[Series[(1 - 3 x + 7 x^2) / ((1 - 6 x) (1 - x)^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Jun 16 2013 *) %o A024063 (Magma) [6^n-n: n in [0..25]]; // _Vincenzo Librandi_, Jul 03 2011 %o A024063 (Magma) I:=[1, 5, 34]; [n le 3 select I[n] else 8*Self(n-1)-13*Self(n-2)+6*Self(n-3): n in [1..30]]; // _Vincenzo Librandi_, Jun 16 2013 %o A024063 (PARI) a(n)=6^n-n \\ _Charles R Greathouse IV_, Oct 07 2015 %Y A024063 Cf. numbers of the form k^n - n: A000325 (k=2), A024024 (k=3), A024037 (k=4), A024050 (k=5), this sequence (k=6), A024076 (k=7), A024089 (k=8), A024102 (k=9), A024115 (k=10), A024128 (k=11), A024141 (k=12). %K A024063 nonn,easy %O A024063 0,2 %A A024063 _N. J. A. Sloane_