OFFSET
1,8
COMMENTS
A cumulative sum over the parities of the decimals in the decimal expansion of the golden ratio A001622.
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
KEYWORD
sign,base,less
AUTHOR
Michel Lagneau, Sep 10 2010
STATUS
approved