Sums of Powers of Divisors

Find the sum of dp where d are the divisors of n for n ≤ x.

For p = 0, 1, 2 or 3 an approximation is also calculated.

x: p: