OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
A0[1]:= {2, 4}:
A1[1]:= {1}:
A3[1]:= {3}:
A13[1]:= {}:
A33[1]:= {}:
A133[1]:= {}:
count:= 0:
for n from 2 while count < 1000 do
A0[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A0[n-1]);
A1[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A1[n-1]) union map(t -> 5*t+1, A0[n-1]);
A3[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A3[n-1]) union map(t -> 5*t+3, A0[n-1]);
A13[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A13[n-1]) union map(t -> 5*t+1, A3[n-1]) union map(t -> 5*t+3, A1[n-1]);
A33[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A33[n-1]) union map(t -> 5*t+3, A3[n-1]);
A133[n]:= map(t -> (5*t, 5*t+2, 5*t+4), A133[n-1]) union map(t -> 5*t+1, A33[n-1]) union map(t -> 5*t+3, A13[n-1]);
count:= count + nops(A133[n]);
od:
sort([seq(op(A133[i]), i=1..n-1)]); # Robert Israel, Dec 10 2023
MATHEMATICA
Select[Range[900], DigitCount[#, 5, 1]==1&&DigitCount[#, 5, 3]==2&] (* Harvey P. Dale, Dec 16 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved