login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A339498 Number of zeroless strictly pandigital numbers divisible by the n-th prime. 0

%I #26 Jan 17 2021 12:59:24

%S 161280,362880,40320,51752,31680,27776,21271,19138,15788,12613,11707,

%T 9072,8832,8423,7725,6822,6241,5937,5454,5113,4796,4629,4310,4122,

%U 3744,3168,3528,3410,3305,3160,2826,2827,2778,2619,2316,2297,2297,2173,2163,2094,2077,2027,1879,1915,1836,1780,1773

%N Number of zeroless strictly pandigital numbers divisible by the n-th prime.

%C Calculated by Chuck Gaydos.

%C 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

%o (Python)

%o from sympy import prime

%o from itertools import permutations

%o def zeroless_pans():

%o for p in permutations("123456789"):

%o yield int("".join(p))

%o def a(n):

%o pn = prime(n)

%o return sum(zlp%pn==0 for zlp in zeroless_pans())

%o print([a(n) for n in range(1, 43)]) # _Michael S. Branicky_, Dec 07 2020

%Y Cf. A000040, A050289.

%K nonn,base

%O 1,1

%A _G. L. Honaker, Jr._, Dec 07 2020

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)