OFFSET
1,1
COMMENTS
LINKS
Eric Weisstein's World of Mathematics, Devil's Staircase
FORMULA
c = Sum_{n>=1} [n/log(2)]/2^n = Sum_{n>=1} 1/2^[n*log(2)], where [z]=floor(z).
EXAMPLE
c=2.3307240704500978473572726401780935386031486101438756503210824331667...
PROG
(PARI) a(n)=local(t=log(2), x=sum(m=1, 10*(n+1), floor(m/t)/2^m)); floor(10^n*x)%10
(PARI) a(n)=local(t=log(2), x=sum(m=1, 10*(n+1), 1/2^floor(m*t))); floor(10^n*x)%10
CROSSREFS
KEYWORD
cons,nonn
AUTHOR
Paul D. Hanna, Aug 01 2006
STATUS
approved