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!)
A123016 a(1)=1, a(2)=1, a(3)=4, a(4)=0; a(n)=12a(n-2)-16a(n-3) for n>=5. 0
1, 1, 4, 0, 32, -64, 384, -1280, 5632, -21504, 88064, -348160, 1400832, -5586944, 22380544, -89456640, 357957632, -1431568384, 5726797824, -22906142720, 91626668032, -366502477824, 1466018299904, -5864056422400, 23456259244032, -93824969867264, 375300013686784 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
G.f.: (-2*x^3 + 3*x^2 + x)/((1-2x) * (1+4x)). - Ralf Stephan, Jul 14 2013
a(n) = (16*2^n - (-4)^n)/48, n>0. - Ralf Stephan, Jul 18 2013
MAPLE
a[1]:=1: a[2]:=1: a[3]:=4: a[4]:=0: for n from 5 to 27 do a[n]:=12*a[n-2]-16*a[n-3] od: seq(a[n], n=1..27);
MATHEMATICA
M = {{1, -1, -1, 1}, {-1, 1, -1, 1}, {-1, -1, 1, 1}, {1, 1, 1, -3}}; v[1] = {1, 0, 0, 0}; v[n_] := v[n] = M.v[n - 1]; a1 = Table[v[n][[1]], {n, 1, 50}]
LinearRecurrence[{-2, 8}, {1, 1, 4}, 30] (* Harvey P. Dale, Apr 23 2015 *)
CROSSREFS
Sequence in context: A270933 A270293 A270900 * A231038 A271280 A271086
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Sep 23 2006
EXTENSIONS
Edited by N. J. A. Sloane, Oct 08 2006
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 14 23:22 EDT 2024. Contains 372535 sequences. (Running on oeis4.)