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!)
A136258 a(n) = 2*a(n-1) - 2*a(n-2), with a(0)=1, a(1)=5. 1
1, 5, 8, 6, -4, -20, -32, -24, 16, 80, 128, 96, -64, -320, -512, -384, 256, 1280, 2048, 1536, -1024, -5120, -8192, -6144, 4096, 20480, 32768, 24576, -16384, -81920, -131072, -98304, 65536, 327680, 524288, 393216, -262144, -1310720, -2097152, -1572864, 1048576 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Sequence opposite in sign to its second differences.
Binomial transform of 1, 4, -1, -4.
A bisection gives A135520.
This sequence with offset 0 is the binomial transform of (-1)^floor(n/2)*A010685(n). - R. J. Mathar, Feb 22 2009
LINKS
FORMULA
a(4n+1) = 5*(-4)^n, a(4n+3) = 6*(-4)^n. - M. F. Hasler, May 01 2008
G.f.: x*(1+3*x)/(1-2*x+2*x^2). - R. J. Mathar, Feb 22 2009
From Paul Curtz, Apr 27 2011: (Start)
a(n)= -4 * a(n-4).
a(n)= 3*A009545(n) + A009545(n+1). (End)
E.g.f.: exp(x)*( cos(x) + 4*sin(x) ). - G. C. Greubel, Dec 02 2021
MATHEMATICA
LinearRecurrence[{2, -2}, {1, 5}, 50] (* Harvey P. Dale, May 21 2014 *)
PROG
(PARI) vector(100, n, t=if(n<3, [t1=1, 5][n], -2*t1+2*t1=t)) \\ M. F. Hasler, May 01 2008
(Magma) [n le 2 select 5^(n-1) else 2*(Self(n-1) - Self(n-2)): n in [1..41]]; // G. C. Greubel, Dec 02 2021
(Sage)
A136258=BinaryRecurrenceSequence(2, -2, 1, 5)
[A136258(n) for n in (0..40)] # G. C. Greubel, Dec 02 2021
CROSSREFS
Sequence in context: A296486 A011424 A011495 * A102519 A334849 A199265
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Mar 18 2008
EXTENSIONS
Edited and extended by M. F. Hasler, May 01 2008
Offset corrected Paul Curtz, Apr 27 2011
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 06:04 EDT 2024. Contains 371906 sequences. (Running on oeis4.)