login
A339498
Number of zeroless strictly pandigital numbers divisible by the n-th prime.
0
161280, 362880, 40320, 51752, 31680, 27776, 21271, 19138, 15788, 12613, 11707, 9072, 8832, 8423, 7725, 6822, 6241, 5937, 5454, 5113, 4796, 4629, 4310, 4122, 3744, 3168, 3528, 3410, 3305, 3160, 2826, 2827, 2778, 2619, 2316, 2297, 2297, 2173, 2163, 2094, 2077, 2027, 1879, 1915, 1836, 1780, 1773
OFFSET
1,1
COMMENTS
Calculated by Chuck Gaydos.
a(4620), for prime(4620) = 44449, is the first zero entry. The last nonzero entry is a(6289143) for prime 109739359 = 987654231 / 9. - Michael S. Branicky, Dec 07 2020
PROG
(Python)
from sympy import prime
from itertools import permutations
def zeroless_pans():
for p in permutations("123456789"):
yield int("".join(p))
def a(n):
pn = prime(n)
return sum(zlp%pn==0 for zlp in zeroless_pans())
print([a(n) for n in range(1, 43)]) # Michael S. Branicky, Dec 07 2020
CROSSREFS
Sequence in context: A017657 A235256 A233891 * A249880 A343967 A343970
KEYWORD
nonn,base
AUTHOR
G. L. Honaker, Jr., Dec 07 2020
STATUS
approved