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!)
A213369 The twisted Stern sequence: a(0) = 0, a(1) = 1 and a(2n) = -a(n), a(2n + 1) = -a(n)-a(n + 1) for n>=1. 6
0, 1, -1, 0, 1, 1, 0, -1, -1, -2, -1, -1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 2, 1, 1, 0, -1, -1, -2, -1, -3, -2, -3, -1, -4, -3, -5, -2, -5, -3, -4, -1, -3, -2, -3, -1, -2, -1, -1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, 2, 5, 3, 4, 1, 5, 4, 7, 3, 8, 5, 7, 2, 7, 5, 8, 3, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,10
LINKS
Jean-Paul Allouche, On the Stern sequence and its twisted version, arXiv preprint arXiv:1202.4171 [math.NT], 2012.
Roland Bacher, Twisting the Stern sequence, arXiv:1005.5627v1 [math.CO], 2010.
Peter Bundschuh & Keijo Väänänen, Algebraic independence of the generating functions of Stern's sequence and of its twist, Journal de théorie des nombres de Bordeaux, 25 no. 1 (2013), p. 43-57, doi: 10.5802/jtnb.824.
Michael Coons, On Some Conjectures concerning Stern's Sequence and its Twist, arXiv:1008.0193v3 [math.NT], 2010.
FORMULA
a(n) = A287729(n) - A287730(n) for n > 0. - Michel Marcus & I. V. Serov, May 28 2019
MATHEMATICA
a[0]=0; a[1]=1; a[n_] := a[n] = If[EvenQ[n], -a[n/2], -a[(n-1)/2]-a[(n+1)/2 ]]; Table[a[n], {n, 0, 77}] (* Jean-François Alcover, Oct 02 2018 *)
PROG
(Maxima) a[0]:0$ a[1]:1$ a[n]:=-a[floor(n/2)]-(1-(-1)^n)*a[floor((n-1)/2)+1]/2$ makelist(a[n], n, 0, 77); /* Bruno Berselli, Jun 15 2012 */
CROSSREFS
Cf. A002487. Absolute values give A020944.
Sequence in context: A268533 A275849 A025906 * A020944 A287729 A367582
KEYWORD
sign,look
AUTHOR
N. J. A. Sloane, Jun 13 2012
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 July 26 04:56 EDT 2024. Contains 374615 sequences. (Running on oeis4.)