OFFSET
1,1
COMMENTS
a(n) is the smallest prime p such that tau(p) = tau(p - 1)/2 = tau(p - 2)/3 = ... = tau(p - n + 1)/n = 2, where tau(k) = the number of divisors of k (A000005).
No such prime p exists for n > 5, so a(5) is the final term. - Jon E. Schoenfield, Feb 07 2021
LINKS
Jon E. Schoenfield, A proof that a(5) is the final term
EXAMPLE
a(4) = 1019 because 1016, 1017, 1018 and 1019 have 8, 6, 4, and 2 divisors respectively and there is no smaller prime having this property (see A340872).
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Jaroslav Krizek, Feb 07 2021
STATUS
approved