OFFSET
1,1
COMMENTS
If m = 2^j-1 is a Mersenne prime then m^2 and m*(2^j) (twice a perfect number) are terms. If m-2 is also a prime, then 2*(m-2) is a term. - Metin Sariyar, Mar 31 2020
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..59 (terms < 4*10^12)
EXAMPLE
12 is a term because 1 + 2 + 3 + 4 + 6 = 2^4.
MATHEMATICA
Select[Range[7*10^7], CompositeQ[#]&&IntegerQ[Log[2, Total[ Most[ Divisors[ #]]]]]&] (* Harvey P. Dale, Apr 01 2018 *)
PROG
(PARI) isok(n) = ispower(sigma(n)-n, , &k) && (k==2); \\ Michel Marcus, Dec 18 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Dec 18 2016
STATUS
approved