OFFSET
1,2
FORMULA
EXAMPLE
The 2nd convergent is 22/7 = 3.142857 142857 ..., whose period is 6, so a(2) = 6.
The 3rd convergent is 333/106 = 3.1 4150943396226 4150943396226 ..., whose period is 13, so a(3) = 13.
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jani Melik, Jan 21 2014
STATUS
approved