OFFSET
0,6
LINKS
Thomas Garrity, "A Multidimensional Continued Fraction Generalization of Stern's Diatomic Sequence", J. Integer Sequence 13 (2013), Paper 13.7.7
FORMULA
Satisfies the recurrence relations
a(9n+3) = a(3n)
a(9n+4) = a(3n+1)
a(9n+5) = a(3n)+a(3n+1)+a(3n+2)
a(9n+6) = a(3n+1)
a(9n+7) = a(3n+2)
a(9n+8) = a(3n)+a(3n+1)+a(3n+2)
a(27n) = a(9n+2)
a(27n+2) = -a(9n+1)+2a(9n+2)
a(27n+9) = a(9n+2)
a(27n+10) = a(9n)
a(27n+11) = a(9n)+a(9n+1)+a(9n+2)
a(27n+18) = a(3n)+a(3n+1)+a(3n+2)
a(27n+19) = a(3n)
a(27n+20) = 2a(3n) + 2a(3n+1) + a(3n+2)
a(81n+1) = a(9n)
a(81n+28) = a(9n+1)
a(81n+55) = a(3n+1) for n >= 0.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Sep 08 2013
STATUS
approved