OFFSET
1,2
COMMENTS
Could be made less gigantic by omitting final terms in continued fraction, which are always 2*c0.
EXAMPLE
sqrt(3)=1+[1,2] so a(3) is encoded as:
.....0 0 0 0 1 -> 1
....... 1 . 0 .-> 2
--------------
.....000100001 = 33.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Marc LeBrun, Feb 07 2001
STATUS
approved