cp's OEIS Frontend

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.

A024050 a(n) = 5^n - n.

This page as a plain text file.
%I A024050 #28 Sep 10 2024 14:44:52
%S A024050 1,4,23,122,621,3120,15619,78118,390617,1953116,9765615,48828114,
%T A024050 244140613,1220703112,6103515611,30517578110,152587890609,
%U A024050 762939453108,3814697265607,19073486328106,95367431640605,476837158203104,2384185791015603,11920928955078102,59604644775390601
%N A024050 a(n) = 5^n - n.
%H A024050 Vincenzo Librandi, <a href="/A024050/b024050.txt">Table of n, a(n) for n = 0..300</a>
%H A024050 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (7,-11,5).
%F A024050 a(n) = 7*a(n-1) - 11*a(n-2) + 5*a(n-3).
%F A024050 G.f.: (1 - 3*x + 6*x^2)/((1-5*x)*(1-x)^2). - _Vincenzo Librandi_, Jun 16 2013
%F A024050 E.g.f.: exp(x)*(exp(4*x) - x). - _Elmo R. Oliveira_, Sep 10 2024
%p A024050 g:=1/(1-5*z): gser:=series(g, z=0, 43): seq(coeff(gser, z, n)-n, n=0..31); # _Zerinvary Lajos_, Jan 09 2009
%t A024050 Table[5^n - n, {n, 0, 30}] (* or *) CoefficientList[Series[(1 - 3 x + 6 x^2) / ((1 - 5 x) (1 - x)^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Jun 16 2013 *)
%t A024050 LinearRecurrence[{7,-11,5},{1,4,23},30] (* _Harvey P. Dale_, Mar 03 2022 *)
%o A024050 (Magma) [5^n-n: n in [0..35]]; // _Vincenzo Librandi_, Jun 12 2011
%Y A024050 Cf. numbers of the form k^n - n: A000325 (k=2), A024024 (k=3), A024037 (k=4), this sequence (k=5), A024063 (k=6), A024076 (k=7), A024089 (k=8), A024102 (k=9), A024115 (k=10), A024128 (k=11), A024141 (k=12).
%K A024050 nonn,easy
%O A024050 0,2
%A A024050 _N. J. A. Sloane_