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!)
A015562 Expansion of x/(1 - 7*x - 5*x^2). 4
0, 1, 7, 54, 413, 3161, 24192, 185149, 1417003, 10844766, 82998377, 635212469, 4861479168, 37206416521, 284752311487, 2179298263014, 16678849398533, 127648437104801, 976933306726272, 7476775332607909, 57222093861886723 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = 7*a(n-1) + 5*a(n-2).
MATHEMATICA
Join[{a=0, b=1}, Table[c=7*b+5*a; a=b; b=c, {n, 100}]] (* Vladimir Joseph Stephan Orlovsky, Jan 17 2011 *)
LinearRecurrence[{7, 5}, {0, 1}, 30] (* Vincenzo Librandi, Nov 14 2012 *)
PROG
(Sage) [lucas_number1(n, 7, -5) for n in range(0, 21)] # Zerinvary Lajos, Apr 24 2009
(Magma) [n le 2 select n-1 else 7*Self(n-1) + 5*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 14 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-7*x-5*x^2))) \\ G. C. Greubel, Dec 30 2017
CROSSREFS
Sequence in context: A204258 A081008 A116472 * A243670 A152108 A093742
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 May 25 07:15 EDT 2024. Contains 372782 sequences. (Running on oeis4.)