login
Numbers divisible by prime(d) for each digit d in their base-8 representation, none of which may be zero.
2

%I #10 Jun 29 2019 03:55:09

%S 18,35,78,84,90,138,210,255,330,429,588,594,910,1098,1170,1275,1386,

%T 1530,1755,1820,1950,2156,2275,2706,3315,3510,3927,3978,4746,4758,

%U 4794,4900,4914,5202,5610,5850,6244,6300,6412,6930,7254,7410,7462,7566,8778,8850,9042,9354,9435,9492

%N Numbers divisible by prime(d) for each digit d in their base-8 representation, none of which may be zero.

%C Base-8 analog of A256786. See A256874 - A256879 for the base-4, ..., base-9 analogs.

%C See A256868 for a variant where divisibility by prime(d+1) is required instead.

%o (PARI) is(n,b=8)=!for(i=1,#d=Set(digits(n,b)),(!d[i]||n%prime(d[i]))&&return)

%Y Cf. A256786, A256874 - A256879, A256868, A256882 - A256884, A256865 - A256870.

%K nonn,base

%O 1,1

%A _M. F. Hasler_, Apr 11 2015