OFFSET
1,1
COMMENTS
A number is called pseudoperfect (or semiperfect) if it is equal to the sum of a subset of its proper divisors.
If x == 0, 1, 4 or 9 (mod 12), the triangular number k = x * (x-1)/2 is divisible by 6, and k is a term since k = k/2 + k/3 + k/6. - Robert Israel, Nov 07 2024
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is a term because has three proper divisors (1, 2, 3) and the sum of subset (1,2,3) is 6.
36 is a term because has five proper divisors (1, 2, 3, 4, 6, 9, 12, 18, 36) and the sum of the subset (6,12,18) is 36.
MAPLE
ispp:= proc(n) uses Optimization;
local D, d, R;
D:= numtheory:-divisors(n) minus {n};
R:= traperror(Minimize(add(x[d], d=D), {add(d*x[d], d=D)=n}, assume=binary));
R <> lasterror and R[1] > 0
end proc;
select(ispp, [seq(i*(i+1)/2, i=1..200)]); # Robert Israel, Oct 16 2024
MATHEMATICA
psQ[n_] := Module[{d = Most[Divisors[n]], x}, Total[d] >= n && SeriesCoefficient[Series[Product[1 + x^d[[i]], {i, 1, Length[d]}], {x, 0, n}], n] > 0]; Select[Accumulate[Range[132]], psQ] (* Amiram Eldar, Oct 12 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Oct 12 2024
STATUS
approved