login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A063578
Smallest k such that 4^k has exactly n 3's in its decimal representation.
1
1, 7, 26, 43, 38, 57, 48, 64, 81, 92, 91, 78, 104, 151, 155, 143, 162, 150, 173, 249, 267, 251, 339, 282, 333, 325, 275, 378, 345, 428, 415, 429, 473, 463, 411, 430, 513, 420, 507, 546, 508, 489, 533, 603, 566, 593, 641, 545, 707, 638, 722
OFFSET
0,2
LINKS
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
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved