OFFSET
0,3
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 0..1000
J. K. Sikora, The first 98093504 CFE coefficients of the binary Champernowne Constant (231 MB zipped)
Eric E. Weisstein, Binary Champernowne Constant
MATHEMATICA
a = {}; Do[a = Append[a, IntegerDigits[n, 2]], {n, 1, 10^3} ]; ContinuedFraction[ N[ FromDigits[ {Flatten[a], 0}, 2], 500]]
almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; Take[ ContinuedFraction[ FromDigits[ {Array[almostNatural[#, 2] &, 20000], 0}, 2]], 100] (* Robert G. Wilson v, Jul 21 2014 *)
PROG
(PARI) A066717(b=2, t=1., s=b)={contfrac(sum(n=1, default(realprecision)*2.303\log(b)+1, n<s||s*=b; n*t/=s))} \\ First optional arg allows to get the c.f. of C[b] for other bases. - M. F. Hasler, Oct 25 2019
CROSSREFS
KEYWORD
base,cofr,nonn
AUTHOR
Robert G. Wilson v, Jan 14 2002
STATUS
approved