OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 12 because 12 in base 5 is 22 where base 5 is a prime base and 5 < 12-1.
MATHEMATICA
PROG
(Python)
from sympy import sieve
from sympy.ntheory import digits
def ok(n): return any(len(set(digits(n, p)[1:]))==1 for p in sieve.primerange(2, n-1))
print([k for k in range(253) if ok(k)]) # Michael S. Branicky, Nov 13 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank M Jackson, Nov 12 2024
STATUS
approved