[go: up one dir, main page]

login
A256874
Numbers divisible by prime(d) for each digit d in their base-4 representation, none of which may be zero.
15
6, 15, 30, 42, 90, 102, 150, 255, 342, 426, 510, 618, 630, 666, 678, 750, 870, 990, 1386, 1434, 1446, 1470, 1530, 1626, 1638, 1686, 1710, 1770, 1950, 2010, 2394, 2406, 2430, 2454, 2490, 2550, 2646, 2670, 2730, 2790, 2910, 2970, 3030, 3450, 3510, 3690, 3750, 3930, 3990, 4095, 5466, 5478, 5526, 5550, 5610, 5718, 5790
OFFSET
1,1
COMMENTS
Base-4 analog of A256786. See A256875 - A256879 for the base-5, ..., base-9 analogs.
See A256884 for a variant where divisibility by prime(d+1) is required instead.
PROG
(PARI) is(n, b=4)=!for(i=1, #d=Set(digits(n, b)), (!d[i]||n%prime(d[i]))&&return)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 11 2015
STATUS
approved