OFFSET
0,2
COMMENTS
The continued fraction has a "folded" overall structure. Apart from a(0) and from the record values of the form 3^(3^k)-1 (k >= 0), the only terms are 1 and 3. This follows from the theorem in Shallit's paper. - Georg Fischer, Aug 29 2022
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..382
Jeffrey O. Shallit, Simple Continued Fractions for Some Irrational Numbers II, J. Number Theory 14 (1982), 228-231.
EXAMPLE
0.370421175633926798495743189411...
MATHEMATICA
ContinuedFraction[Sum[1/3^(3^i), {i, 0, 5}]] (* Michael De Vlieger, Jul 01 2018 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 8000); x=contfrac(suminf(n=0, 1/3^(3^n))); for (n=0, 382, write("b061678.txt", n, " ", x[n+1])) } \\ Harry J. Smith, Jul 26 2009
CROSSREFS
KEYWORD
cofr,nonn
AUTHOR
Jason Earls, Jun 23 2001
STATUS
approved