OFFSET
1,3
COMMENTS
A240828 is an essentially identical sequence. - Bruno Berselli, Apr 18 2014
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..20000
FORMULA
a(1)=a(2)=1, for k>=2 we have a(2k)=2*floor(k/2) and a(2k-1)=2*k-2.
G.f.: x*(x^7+x^6-x^5+x^4+x^3+x^2+x+1) / ((x-1)^2*(x+1)^2*(x^2+1)). - Colin Barker, Jun 20 2013
MATHEMATICA
Table[Length[ContinuedFraction[Floor[Fibonacci[n]*GoldenRatio]/Fibonacci[n]]], {n, 70}]
PROG
(PARI) a(n)=if(n<3, 1, if(n%2, n-1, 2*floor(n/4)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Feb 15 2011
STATUS
approved