OFFSET
2,5
EXAMPLE
a(19) = 4 because 2^20 = 1048576 = 232023301 (to scale 5) and (2+3+2+0+2+3+3+0+1)/4 = 4
MATHEMATICA
a[n_] := 1/4* Module[{aux = IntegerDigits[2^(n + 1), 5]}, Sum[aux[[i]], {i, 1, Length[aux]}]] [From José María Grau Ribas, Feb 13 2010]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, Jun 20 2000
EXTENSIONS
More terms from James A. Sellers, Jul 04 2000
STATUS
approved