How many ordered pairs (a, b) of positive integers satisfy a^2 + b^2 = 500?
I got
(4,22)
(22,4)
(10,20)
(20,10)