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!)
A159289 a(n+1) = 5*a(n) - 2*a(n-1). 3
5, 21, 95, 433, 1975, 9009, 41095, 187457, 855095, 3900561, 17792615, 81161953, 370224535, 1688798769, 7703544775, 35140126337, 160293542135, 731187458001, 3335350205735, 15214376112673, 69401180151895, 316577148534129 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
From R. J. Mathar, Apr 10 2009: (Start)
G.f.: -(-5+4*x)/(1-5*x+2*x^2).
a(n) = 5*A107839(n) - 4*A107839(n-1). (End)
MATHEMATICA
LinearRecurrence[{5, -2}, {5, 21}, 50] (* G. C. Greubel, Jun 27 2018 *)
PROG
(PARI) x='x+O('x^30); Vec(-(-5+4*x)/(1-5*x+2*x^2)) \\ G. C. Greubel, Jun 27 2018
(Magma) I:=[5, 21]; [n le 2 select I[n] else 5*Self(n-1) - 2*Self(n-2): n in [1..30]]; // G. C. Greubel, Jun 27 2018
CROSSREFS
Cf. A107839.
Sequence in context: A202513 A361775 A343349 * A201869 A017968 A017969
KEYWORD
nonn,easy
AUTHOR
Creighton Dement, Apr 08 2009
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 April 23 01:19 EDT 2024. Contains 371906 sequences. (Running on oeis4.)