OFFSET
1,1
COMMENTS
This reverses the idea for A217049, with the smaller of successive primes being raised to the larger prime power. See that sequence for motivation.
EXAMPLE
(677^3)*(673^5) is the value corresponding to a(2). What this means is that the decimal representation of this number has a prime number of copies of each digit and no pair of successive primes in the same order and smaller than {673,677} has the same characteristic.
MATHEMATICA
Table[p=2; While[!And@@PrimeQ[DigitCount[(p^Prime[n+1])*(NextPrime@p^Prime[n])]], p=NextPrime@p]; p, {n, 6}] (* Giorgos Kalogeropoulos, Aug 18 2021 *)
PROG
(Python)
from sympy import isprime, nextprime, prime
from sympy.ntheory import count_digits
def a(n):
pn = prime(n); qn = nextprime(pn)
p, q = 2, 3; c = count_digits((q**pn)*(p**qn))
while not all(isprime(c[i]) for i in range(10)):
p, q = q, nextprime(q); c = count_digits((q**pn)*(p**qn))
return p
print([a(n) for n in range(1, 7)]) # Michael S. Branicky, Aug 21 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
James G. Merickel, Oct 06 2012
EXTENSIONS
a(15) added by James G. Merickel, Oct 17 2012
Name clarified by Tanya Khovanova, Aug 17 2021
a(16)-a(20) added by Giorgos Kalogeropoulos, Aug 18 2021
a(21)-a(27) from Michael S. Branicky, Aug 22 2021
STATUS
approved