OFFSET
1,1
COMMENTS
In other words, a(n) is the smallest suffix to be overlaid on the decimal representation of the n-th prime number to obtain the next prime number.
This sequence has similarities with A274206; here we consider consecutive prime numbers, there consecutive nonnegative integers.
There are no two consecutive equal terms.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
FORMULA
a(n) <= prime(n+1) with equality iff prime(n+1) is the least prime number with its number of digits and leading digit.
EXAMPLE
For n = 42:
- prime(42) = 181 and prime(43) = 191,
- floor(181/(10^1)) = 18 <> 19 = floor(191/(10^1)),
- floor(181/(10^2)) = 1 = floor(191/(10^2)),
- so a(42) = 191 mod (10^2) = 91.
PROG
(PARI) { base=10; p=2; forprime (q=p+1, 379, for (k=0, oo, m=base^k; if (q\m == p\m, print1 (q%m", "); p=q; break))) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 31 2020
STATUS
approved