OFFSET
1,1
EXAMPLE
3 is in this sequence because sigma(3 - 1) = sigma((3 + 1)/2) and 3 is prime.
MATHEMATICA
Select[Prime[Range[10^4]], DivisorSigma[1, # - 1] == DivisorSigma[1, (# + 1)/2] &] (* Alonso del Arte, Oct 31 2014 *)
PROG
(Magma) [p: p in PrimesInInterval(3, 100000000) | SumOfDivisors(p-1) eq SumOfDivisors((p+1) div 2)];
(PARI) lista(nn) = {forprime(p=3, nn, if (sigma(p-1)==sigma((p+1)/2), print1(p, ", ")); ); } \\ Michel Marcus, Oct 31 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Oct 31 2014
STATUS
approved