OFFSET
1,2
COMMENTS
118 terms < 5*10^5 were found.
All terms are squares because their number of divisors is odd (see formula field in A000005: a(n) is odd iff n is square).
EXAMPLE
1 is a term because tau(1) = 1, tau(2 -1 + 1) = 2 and 1 modulo 4 is 1.
196 is a term because tau(196) = 9, tau(1193 - 196 + 1) = 4 and 9 modulo 8 is 1.
200 is not a term because tau(200) = 12, tau(1223 -200 + 1) = 11 and 12 modulo 22 = 12.
PROG
(PARI)
isok(k)=my(d_1=numdiv(k), d_2=numdiv(prime(k)-k+1)); d_1%(2*d_2)==1;
for(k=1, 1000, if(isok(k), print1(k", ")))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Claude H. R. Dequatre, Dec 07 2024
STATUS
approved