First time here? Check out the FAQ!
answered 2016-02-22 19:04:06 +0100
This works:
sage: sum_of_k_squares(4, 2016) (0, 4, 8, 44)