Question 478021
p2+(p+1)2=(p+2)2
p2+p2+2p+1=p2+4p+4
p2-2p-3=0
(p-3)(p+1)=0
p=3 or -1
Throwing out the negative answer, we get p=3, p+1=4, and p+2=5..