Solution:
a. Let us first observe that x=1,y=2,z=2 is a solution, since 12+22+22=32. It follows then that, for every positive integer n, the triple x=n,y=2n,z=2n satisfies the requirement of the problem, since
n2+(2n)2+(2n)2=9n2=(3n)2.
b. For every positive integer t, the triple 1,2t,2t2 satisfies the requirements of the problem: indeed the greatest common divisor of these three numbers is always equal to 1, and we have
1+(2t)2+(2t2)2=1+4t2+4t4=(1+2t2)2.
A possible way to find this solution is the following: first of all, to ensure that the condition MCD(x,y,z)=1 is satisfied we choose x=1. We can then hope that x2+y2+z2=1+y2+z2 can be identified with the square of a certain binomial. Writing 1+y2+z2=(a+b)2=a2+2ab+b2, it is natural to choose a=1,2ab=y2 and b=z. Solving this system we find z=b=2y2, and clearly in order for z to be an integer it is necessary that y be even, so we write y=2t for some positive integer t: we then find the proposed solution, x=1,y=2t,z=2y2=2t2.