OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
224 is a term since both 224 and 225 are half-Zumkeller numbers: the proper divisors of 224 are {1, 2, 4, 7, 8, 14, 16, 28, 32, 56, 112} and 1 + 2 + 4 + 7 + 8 + 14 + 16 + 32 + 56 = 28 + 112, and the proper divisors of 225 are {1, 3, 5, 9, 15, 25, 45, 75} and 1 + 3 + 15 + 25 + 45 = 5 + 9 + 75.
MATHEMATICA
hzQ[n_] := Module[{d = Most @ Divisors[n], sum, x}, sum = Plus @@ d; EvenQ[sum] && CoefficientList[Product[1 + x^i, {i, d}], x][[1 + sum/2]] > 0]; hzq1 = False; s = {}; Do[hzq2 = hzQ[n]; If[hzq1 && hzq2, AppendTo[s, n - 1]]; hzq1 = hzq2, {n, 2, 6000}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 03 2020
STATUS
approved