https://mathworld.wolfram.com/DivisorFunction.html
for z=5, this produces 4+8i but how does this relate to 1 + 2i, 2 + i? adding them gives 3 + 3i?
The divisor function sigma_k(n) for n an integer is defined as the sum of the kth powers of the (positive integer) divisors of n, sigma_k(n)=sum_(d|n)d^k. (1) It is implemented in the Wolfram Language as DivisorSigma[k, n]. The notations d(n) (Hardy and Wright 1979, p. 239), nu(n) (Ore 1988, p. 86), and tau(n) (Burton 1989, p. 128) are somet...