login
A393561
Smallest prime p such that p+1 starts a run of exactly n consecutive numbers having exactly the same number of divisors.
0
13, 229, 241, 13781, 298693, 80749767323
OFFSET
2,1
EXAMPLE
The 2 consecutive integers following the prime 13, namely [14, 15], all have the same number of divisors, namely 4; 16 has 5 divisors and no smaller integer following a prime displays this property, hence a(2) = 13.
The 3 consecutive integers following the prime 229, namely [230, 231, 232], all have the same number of divisors, namely 8; 233 has 2 divisors and no smaller integer following a prime displays this property, hence a(3) = 229.
a(5) = A119730(1).
a(6) = A119740(1).
MATHEMATICA
a[n_]:=Module[{p=2}, While[Length[Union[DivisorSigma[0, Range[p+1, p+n]]]]>1, p=NextPrime[p]]; p]; Array[a, 5, 2] (* James C. McMahon, Mar 26 2026 *)
PROG
(PARI) card(k)=my(n=numdiv(k+1), i=1); while(numdiv(k+i+1)==n, i++); i
a(n)=forprime(p=2, +oo, if(card(p)==n, return(p)))
KEYWORD
nonn,hard,more
AUTHOR
Jean-Marc Rebert, Feb 21 2026
STATUS
approved