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!)
A135520 a(n) = 4*a(n-2). 9
2, 1, 8, 4, 32, 16, 128, 64, 512, 256, 2048, 1024, 8192, 4096, 32768, 16384, 131072, 65536, 524288, 262144, 2097152, 1048576, 8388608, 4194304, 33554432, 16777216, 134217728, 67108864, 536870912, 268435456, 2147483648, 1073741824 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
From R. J. Mathar, corrected Apr 14 2008: (Start)
O.g.f.: (5/(1-2*x) + 3/(1+2*x))/4.
a(n) = (5*2^n + 3*(-2)^n)/4.
a(2*n)=2*A000302(n). a(2*n+1)=A000302(n). (End)
a(n) = A000079(n) terms swapped by pairs. - Paul Curtz, Apr 26 2011
a(n) = 2^(n+(-1)^n). - Wesley Ivan Hurt, Dec 13 2013
E.g.f.: (1/4)*(5*exp(2*x) + 3*exp(-2*x)). - G. C. Greubel, Oct 17 2016
MAPLE
A135520:=n->2^(n+(-1)^n); seq(A135520(n), n=0..50); # Wesley Ivan Hurt, Dec 13 2013
MATHEMATICA
LinearRecurrence[{1, 4, -4}, {2, 1, 8}, 40] (* Harvey P. Dale, May 25 2012 *)
LinearRecurrence[{0, 4}, {2, 1}, 32] (* Ray Chandler, Aug 03 2015 *)
PROG
(PARI) a(n)=1<<(n+(-1)^n) \\ Charles R Greathouse IV, Jun 01 2011
(Magma) [(5/4)*2^n+(3/4)*(-2)^n: n in [0..40]]; // Vincenzo Librandi, Jun 02 2011
CROSSREFS
Sequence in context: A178102 A245836 A368386 * A136230 A193892 A193907
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Feb 19 2008
EXTENSIONS
More terms from R. J. Mathar, Feb 23 2008
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 28 07:46 EDT 2024. Contains 372020 sequences. (Running on oeis4.)