OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..2000
MAPLE
N:= 100: # for a(0)..a(N)
A:= Array(0..N):
count:= 0:
for k from 1 while count < N+1 do
v:= numboccur(1, convert(4^k, base, 10));
if v <= N and A[v] = 0 then A[v]:= k; count:= count+1; fi
od:
convert(A, list); # Robert Israel, Jul 03 2020
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[4^k], 1] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{p4=Table[DigitCount[4^n, 10, 1], {n, 750}]}, Table[Position[p4, i, 1, 1], {i, 0, 50}]]//Flatten (* Harvey P. Dale, May 05 2018 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved