OFFSET
0,2
EXAMPLE
Pi truncated to 4 decimal places gives 3.1415 . The continued fraction for 3.1415 is [3, 7, 14, 1, 8, 2] which contains 6 terms, hence a(3)=6.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Benoit Cloitre, Mar 17 2003
STATUS
approved