OFFSET
1,1
COMMENTS
LINKS
Michel Marcus, Table of n, a(n) for n = 1..10000 (terms up to n=1000 by Felix Huber).
Eric Weisstein's World of Mathematics, Perfect Number
EXAMPLE
15 is in the sequence because sigma(15 - x) + sigma(15 + x) = 4*15 has the solution x = 5: sigma(15 - 5) + sigma(15 + 5) = sigma(10) + sigma(20) = 18 + 42 = 60 = 4*15.
MAPLE
PROG
(PARI) isok(k) = for (x=0, k-1, if (sigma(k - x) + sigma(k + x) == 4*k, return(1))); \\ Michel Marcus, Apr 26 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Huber, Apr 24 2025
STATUS
approved
