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!)
A141416 First differences of A133730. 1
-1, -1, 2, 0, 0, -2, 4, -2, 4, -6, 12, -10, 20, -22, 44, -42, 84, -86, 172, -170, 340, -342, 684, -682, 1364, -1366, 2732, -2730, 5460, -5462, 10924, -10922, 21844, -21846, 43692, -43690, 87380, -87382, 174764, -174762, 349524, -349526, 699052, -699050, 1398100, -1398102 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(2n) = (-1)^(n+1)*A084247(n).
a(2n+1) = -A078008(n).
a(2n) = -2*a(2n-1), n>0.
a(2n) + a(2n+1) = 2*(-1)^(n+1).
G.f.: (-1 -x +3*x^2 +x^3)/( (1-2*x^2)*(1+x^2) ). - R. J. Mathar, Jul 02 2011
a(n) = ((4*i^(n+1) - 2^((n+1)/2))*(1-(-1)^n) - 2*(4*i^n - 2^(n/2))*(1+(-1)^n))/12. - G. C. Greubel, Mar 30 2021
MATHEMATICA
LinearRecurrence[{0, 1, 0, 2}, {-1, -1, 2, 0}, 50] (* G. C. Greubel, Mar 30 2021 *)
PROG
(Magma) I:=[-1, -1, 2, 0]; [n le 4 select I[n] else Self(n-2) +2*Self(n-4): n in [1..51]]; // G. C. Greubel, Mar 30 2021
(Sage) [((4*i^(n+1) - 2^((n+1)/2))*(1-(-1)^n) - 2*(4*i^n - 2^(n/2))*(1+(-1)^n))/12 for n in (0..50)] # G. C. Greubel, Mar 30 2021
CROSSREFS
Sequence in context: A366531 A028641 A325190 * A176787 A127862 A342223
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Aug 05 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 16 02:41 EDT 2024. Contains 371696 sequences. (Running on oeis4.)