3. Let 2≡2(mod5),22≡4(mod5), 23≡3(mod5),24≡1(mod5), then 2D≡2n+4(mod5) .
Similarly, 3n≡3n+4(mod5),
4n≡4n+4(mod5).
Therefore, pa≡pn+4(mod5).
Also, p1≡0(mod5),p2≡0(mod5),
p3≡0(mod5),p4≡4(mod5),
Thus, except for multiples of 4, for all n, p0≡0(mod5), which means the answer is all positive integers that are not multiples of 4.