OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
F:= proc(d, m) option remember;
local A, B;
if m > d then return [] fi;
if d = 0 then return [0] fi;
A:= seq(seq(seq(t+i*5^(d-1), t=procname(dd, m)), dd = 0..d-1), i=2..4);
if m = 0 then [A]
else [seq(seq(t+5^(d-1), t=procname(dd, m-1)), dd=0..d-1), A]
fi
end proc:
map(op, [seq(F(d, 4), d=4..6)]); # Robert Israel, Jul 02 2018
PROG
(PARI) isok(n) = #select(x->(x==1), digits(n, 5)) == 4; \\ Michel Marcus, Jul 02 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved