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!)
A229817 Even bisection gives sequence a itself, n->a(2*(2*n+k)-1) gives k-th differences of a for k=1..2 with a(n)=n for n<2. 9
0, 1, 1, -1, 1, 0, -1, -2, 1, -2, 0, 4, -1, 2, -2, -3, 1, -1, -2, 0, 0, -1, 4, 0, -1, -1, 2, 4, -2, 3, -3, -6, 1, -3, -1, 5, -2, 2, 0, 2, 0, 4, -1, -9, 4, -5, 0, 8, -1, 3, -1, -7, 2, -4, 4, 3, -2, -1, 3, 5, -3, 4, -6, -6, 1, -2, -3, 1, -1, -1, 5, 3, -2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,8
LINKS
FORMULA
a(2*n) = a(n),
a(4*n+1) = a(n+1) - a(n),
a(4*n+3) = a(n+2) - 2*a(n+1) + a(n).
MAPLE
a:= proc(n) option remember; local m, q, r;
m:= (irem(n, 4, 'q')+1)/2;
`if`(n<2, n, `if`(irem(n, 2, 'r')=0, a(r),
add(a(q+m-j)*(-1)^j*binomial(m, j), j=0..m)))
end:
seq(a(n), n=0..100);
MATHEMATICA
a[n_] := a[n] = Module[{m, q, r}, {q, m} = QuotientRemainder[n, 4]; m = (m + 1)/2; If[n<2, n, If[Mod[n, 2]==0, a[Quotient[n, 2]], Sum[a[q+m-j] * (-1)^j * Binomial[m, j], {j, 0, m}]]]]; Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Feb 22 2017, translated from Maple *)
CROSSREFS
Sequence in context: A050319 A132456 A257873 * A080966 A187150 A023895
KEYWORD
sign,eigen
AUTHOR
Alois P. Heinz, Sep 30 2013
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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)