The answer is (m,n,p)=(2,3,3), (1,1,2) or (2,2,5).
Let 5m−2np5m+2np=k2 for some positive integer k. Note that 5m−2np∣5m+2np implies that 5m−2np∣2⋅5m. Then as 5m−2np is odd, 5m−2np∣5m and hence 5m−2np=5r for some non-negative integer r.
Case 1: r=0 i.e. 5m−2np=1.
If n≥3, then 5m≡1(mod8) and hence m=2s for some positive integer s. Then 52s≡1(mod3) and we have 2np≡0(mod3). Thus, p=3 and (5s−1)(5s+1)=3⋅2n. Observe that 5s+1≡2(mod4) and has an odd divisor greater than 3 when s>1.
Therefore s=1 and hence m=2, n=3 and k=7.
If n=2, then 8p=(5m+22p)−(5m−22p)=k2−1. Therefore k=2l+1 for some positive integer l and 2p=l(l+1). Then clearly p=3 and hence 5m=13 which yields a contradiction.
If n=1, then 4p=(5m+21p)−(5m−21p)=k2−1. Therefore k=2l+1 for some positive integer l and p=l(l+1). Then clearly l=1, p=2 and hence k=3, m=1.
Case 2: r≥1.
Then 5∣2np and hence p=5. Therefore, 5m−1−2n=5r−1 implies that r=1 since m>r and 5r−1∣2n. Thus, we have 5m−1−2n=1. Clearly n=1 and if n=2, then m=2 and k=3.
If n≥3, then 5m−1≡1(mod8) and hence m−1=2s for some positive integer s. Then (5s−1)(5s+1)=2n. Observe that 5s+1≡2(mod4) and has an odd divisor greater than 1 when s≥1. Therefore s=0 and hence 2n=0 which yields a contradiction.