OFFSET
0,3
COMMENTS
The continued fraction of the number obtained by reading A012245 as binary fraction.
Except for the first term, the only values that occur in this sequence are 1, 2, 3, 4 and values 2^((m-1)*m!) - 1 for m > 2. The probability of occurrence P(a(n) = k) are given by:
P(a(n) = 1) = 1/3,
P(a(n) = 2) = 1/12,
P(a(n) = 3) = 1/3,
P(a(n) = 4) = 1/12 and
P(a(n) = 2^((m-1)*m!)-1) = 1/(3*2^(m-1)) for m > 2.
The next term is roughly 3.12174855*10^144 (see b-file for precise value).
LINKS
A.H.M. Smeets, Table of n, a(n) for n = 0..48
FORMULA
EXAMPLE
0.76562505... = 0 +1/( 1+ 1/(3+1/(3+1/(1+1/(2+...))))) - R. J. Mathar, Jun 19 2021
MAPLE
with(numtheory): cfrac(add(1/2^factorial(n), n=1..7), 24, 'quotients'); # Muniru A Asiru, Aug 11 2018
MATHEMATICA
ContinuedFraction[ FromDigits[ RealDigits[ Sum[1/10^n!, {n, 8}], 10, 10000], 2], 60] (* Robert G. Wilson v, Aug 09 2018 *)
PROG
(Python)
n, f, i, p, q, base = 1, 1, 0, 0, 1, 2
while i < 100000:
....i, p, q = i+1, p*base, q*base
....if i == f:
........p, n = p+1, n+1
........f = f*n
n, a, j = 0, 0, 0
while p%q > 0:
....a, f, p, q = a+1, p//q, q, p%q
....print(a-1, f)
CROSSREFS
KEYWORD
nonn,base,cofr
AUTHOR
A.H.M. Smeets, Jul 27 2018
STATUS
approved