m varies directly as n and inversely as the square of p. Given that m=3 when n=2 and p=1. Write down an equation connecting m,n and p.

m = k (n/p^2)

for the given:
3 = k(2/1)
k = 3/2

so , m = (3/2)n/p^2