OFFSET
1,1
COMMENTS
No prime k belongs to the sequence, since a prime has divisors 1 and k, so sigma(k) = 1 + k and gcd(k, sigma(k)) = 1, which is not prime.
If p > 3 is a prime, then gcd(2*p, sigma(2*p)) = gcd(2*p, 3*(p+1)) = 2, so 2*p is a term. - Amiram Eldar, Jan 03 2026
If p and q are primes (other than 2 and 3) with p | q + 1, then p*q is a term. - Robert Israel, Jan 04 2026
EXAMPLE
For k = 10: sigma(10) = 18 and gcd(10, 18) = 2, which is prime, so 10 is a term.
For k = 12: sigma(12) = 28 and gcd(12, 28) = 4, which is not prime, so 12 is not a term.
MATHEMATICA
Select[Range[200], PrimeQ[GCD[#, DivisorSigma[1, #]]] &] (* Amiram Eldar, Jan 03 2026 *)
PROG
(Python)
from sympy import divisor_sigma, gcd, isprime
def ok(k): return isprime(gcd(k, divisor_sigma(k)))
print([k for k in range(1, 200) if ok(k)])
(PARI) isok(k) = isprime(gcd(k, sigma(k))); \\ Michel Marcus, Jan 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Aied Sulaiman, Jan 03 2026
STATUS
approved
