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!)
A175816 a(n) = Sum_{k=1..n} (-1)^A001622(k). 1
-1, 0, -1, 0, 1, 0, -1, -2, -1, 0, -1, 0, -1, 0, -1, 0, 1, 2, 3, 4, 5, 6, 5, 6, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 6, 5, 4, 5, 6, 5, 6, 5, 4, 3, 2, 3, 4, 3, 2, 3, 4, 5, 6, 7, 6, 5, 4, 5, 6, 7, 8, 9, 10, 9, 10, 9, 10, 11, 12, 13, 14, 15, 16, 15, 16, 15, 16, 17, 18, 19, 18, 17, 18, 17, 18, 19, 18, 19 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
COMMENTS
A cumulative sum over the parities of the decimals in the decimal expansion of the golden ratio A001622.
LINKS
EXAMPLE
a(7) = -1 because, with 7 digits of phi = 1.618033... we obtain:
(-1)^1 + (-1)^6 + (-1)^1 + (-1)^8 + (-1)^0 + (-1)^3 + (-1)^3 = -1.
MATHEMATICA
Rest@ FoldList[ Plus, 0, (-1)^First@ RealDigits[GoldenRatio, 10, 200]]
CROSSREFS
Cf. A001622.
Sequence in context: A331218 A120086 A215030 * A227573 A085004 A095774
KEYWORD
sign,base,less
AUTHOR
Michel Lagneau, Sep 10 2010
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 12:36 EDT 2024. Contains 371711 sequences. (Running on oeis4.)