OFFSET
2,1
COMMENTS
If a(13) != -1, then the corresponding prime must have more than 4178 decimal digits.
Sequence continues n=13..36: ?, 2, 2, 28, 362, 2, ?, 2, 2, 4, 2, 3, ?, 2, 5, 4, 2, 2, 37, 3, 2, 4, 2, 2.
The increasing-order analog begins 15, 2, ?. See A048436.
LINKS
Mathematics Stack Exchange, Concatenation of consecutive positive integers: Does a prime also exist in base 4 (as in bases 2, 3, 5, 6, 7, 8, 9,...)?.
Robert G. Wilson v, Letter to N. J. A. Sloane, Sep. 1992.
EXAMPLE
a(3) = 2 since 21_(base-3) = 7_(base-10), which is prime.
PROG
(PARI) f(n, b) = my(p=1, L=1); sum(k=1, n, k*p*=L+(k==L&&!L*=b)); \\ adapted from A000422
a(n) = my(k=1); while (!ispseudoprime(f(k, n)), k++); k; \\ Michel Marcus, Aug 16 2025
CROSSREFS
KEYWORD
nonn,base,hard,more
AUTHOR
Marco Ripà, Aug 11 2025
STATUS
approved
