OFFSET
1,1
EXAMPLE
MATHEMATICA
f1[p_, e_] := (p^(e + 1) - 1)/(p - 1); f2[p_, e_] := (e*(p - 1)/p + 1)*p^e; triQ[n_] := IntegerQ@Sqrt[8*n + 1]; q[n_] := triQ[Times @@ f1 @@@ (fct = FactorInteger[n]) + Times @@ f2 @@@ fct]; Select[Range[2, 3500], q] (* Amiram Eldar, Nov 27 2021 *)
PROG
(PARI) isok(k) = ispolygonal(sumdiv(k, d, k*eulerphi(d)/d) + sigma(k), 3); \\ Michel Marcus, Nov 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Nov 27 2021
STATUS
approved