OFFSET
0,2
EXAMPLE
a(9) = 43 because 10^9 - 1 is written as 4021444444444_5, and 2^9 - 1 = 511 is written as 4021_5.
MAPLE
A053824 := proc(n) add(d, d=convert(n, base, 5)) ; end proc:
PROG
(PARI)\\L is a list of the N digits of 2^n - 1 in quinary
convert(n)={n = 2^n - 1; x=n; N=floor(log(n)/log(5))+1;
L = listcreate(N);
while(x, n=floor(n/5); r=x-5*n; listput(L, r); x=n; );
L; N};
print1("0, "); for(n = 1, 100, convert(n); s = 0; for(i = 1, N, s += L[i]; ); print1(s+4*n, ", "));
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Washington Bomfim, Jan 01 2011
STATUS
approved