OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..250
EXAMPLE
MATHEMATICA
f[p_, e_] := If[p == 2, 2^(e + 1)-3, (p^(e + 1) - 1)/(p - 1)]; s[1] = 1; s[n_] := Times @@ f @@@ FactorInteger[n]; Select[Range[10^5], s[#] == s[# + 1] &]
PROG
(PARI) f(n) = -sumdiv(n, d, (-1)^d*d); \\ A002129
isok(k) = f(k) + f(k+1) == 0; \\ Michel Marcus, Oct 24 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Oct 24 2021
STATUS
approved