OFFSET
0,2
EXAMPLE
Golden ratio truncated to 3 decimal places gives 1.618. The continued fraction for 1.618 is [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5] which contains 12 terms, hence a(3)=12.
MATHEMATICA
Table[Length[ContinuedFraction[FromDigits[RealDigits[GoldenRatio, 10, n][[1]]]/10^(n-1)]], {n, 60}] (* Harvey P. Dale, May 28 2023 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Mar 17 2003
STATUS
approved