A292446 Numbers k such that sigma((k + 1) / 2) is a prime q.
3, 7, 17, 31, 49, 127, 577, 1457, 3361, 4801, 6961, 8191, 10081, 15841, 20401, 31249, 34321, 55777, 57121, 59857, 131071, 167041, 171697, 293377, 524287, 559681, 916657, 982801, 1062881, 1104097, 1158241, 1195057, 1367857, 1407841, 1414561, 1468897, 1659841
Offset: 1
Examples
49 is a term because sigma((49 + 1) / 2) = sigma(25) = 31 (prime).
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[n: n in [1..10^8] | IsOdd(n) and IsPrime(SumOfDivisors((n+1) div 2))];
-
Mathematica
Select[Range[1,166*10^4,2],PrimeQ[DivisorSigma[1,(#+1)/2]]&] (* Harvey P. Dale, Jun 22 2022 *)
-
PARI
isok(n) = (n%2) && isprime(sigma((n+1)/2)); \\ Michel Marcus, Sep 16 2017
Formula
a(n) = 2*A023194(n) - 1.
Comments