OFFSET
0,2
LINKS
M. F. Hasler, Table of n, a(n) for n = 0..5000
G. Xiao, Contfrac
Eric Weisstein's World of Mathematics, Copeland-Erdős Constant
EXAMPLE
0.23571113171923293137414347... = 0 + 1/(4 + 1/(4 + 1/(8 + 1/(16 + ...))))
MATHEMATICA
Take[ ContinuedFraction@ FromDigits[{Flatten[ IntegerDigits[ Prime@Range@ 47]], 0}], 95] (* Robert G. Wilson v, Oct 17 2013 *)
PROG
(PARI)
s=concat(vector(2000, i, Str(prime(i)))); c=contfrac(eval(s)/10^#s);
c2=contfrac((eval(s)+10^9)/10^#s);
for(i=1, #c, c[i]!=c2[i] & return(Str("Terms may be wrong for n>="i-1));
write("b030168.txt", i-1, " ", c[i])) \\ M. F. Hasler, Oct 13 2009
(PARI) { default(realprecision, 2100); x=0.0; m=0; forprime (p=2, 4000, n=1+floor(log(p)/log(10)); x=p+x*10^n; m+=n; ); x=contfrac(x/10^m); for (n=1, 2001, write("b030168.txt", n-1, " ", x[n])); } \\ Harry J. Smith, Apr 30 2009
CROSSREFS
KEYWORD
nonn,cofr,base
AUTHOR
STATUS
approved