The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A081729 Expansion of Sum(k>=0, x^(2^k)) + 1/(1+x). First differences of A007456 (gossip sequence) for n>1. 3
1, 0, 2, -1, 2, -1, 1, -1, 2, -1, 1, -1, 1, -1, 1, -1, 2, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 2, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 2, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
For n>1: a(n) = 2, if n is power of 2; a(n) =- 1, if n odd; a(n) = 1 otherwise.
The absolute values of a(n) for n>=2 equal the q(n) sequence of the Eta triangle A160464. - Johannes W. Meijer, May 24 2009
LINKS
FORMULA
a(n) = A209229(n) + A033999(n). - Reinhard Zumkeller, Apr 03 2014
MATHEMATICA
Join[{1, 0}, Table[Which[IntegerQ[Log2[n]], 2, OddQ[n], -1, True, 1], {n, 2, 90}]] (* Harvey P. Dale, Jan 17 2023 *)
PROG
(Haskell)
a081729 n = a209229 n + a033999(n)
-- Reinhard Zumkeller, Apr 03 2014
CROSSREFS
Sequence in context: A319395 A194636 A286299 * A219157 A080215 A266871
KEYWORD
sign,easy
AUTHOR
Ralf Stephan, Apr 06 2003
EXTENSIONS
Erroneous formula removed by Antti Karttunen, Sep 14 2017
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 May 14 14:46 EDT 2024. Contains 372533 sequences. (Running on oeis4.)