OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..1000
MAPLE
N:= 100: # to get a(0) to a(N)
A:= Array(0..N):
count:= 0:
for n from 1 while count < N+1 do
v:= numboccur(3, convert(4^n, base, 10));
if v <= N and A[v] = 0 then
count:= count+1;
A[v]:= n;
fi
od:
seq(A[i], i=0..N); # Robert Israel, Feb 24 2016
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[4^k], 3] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved