Given that p is prime, $\gcd(a, p^2)=p$ and $\gcd(b, p^3)=p^2$ find $\gcd(a+b, p^4)$.
I'm really not sure how to approach the problem. My intuition from looking at it makes me think that the answer would simply be p. But I have no idea if that's correct or what the proper way to derive that answer is. Any help is greatly appreciated.