The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A024050 a(n) = 5^n - n. 13
1, 4, 23, 122, 621, 3120, 15619, 78118, 390617, 1953116, 9765615, 48828114, 244140613, 1220703112, 6103515611, 30517578110, 152587890609, 762939453108, 3814697265607, 19073486328106, 95367431640605 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = 7*a(n-1) - 11*a(n-2) + 5*a(n-3).
G.f.: (1 - 3*x + 6*x^2)/((1-5*x)*(1-x)^2). - Vincenzo Librandi, Jun 16 2013
MAPLE
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
MATHEMATICA
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 *)
LinearRecurrence[{7, -11, 5}, {1, 4, 23}, 30] (* Harvey P. Dale, Mar 03 2022 *)
PROG
(Magma) [5^n-n: n in [0..35]]; // Vincenzo Librandi, Jun 12 2011
CROSSREFS
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).
Sequence in context: A201350 A015532 A144465 * A236421 A227639 A291026
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 08:37 EDT 2024. Contains 373160 sequences. (Running on oeis4.)