Magnitude of intensity of the electric field on the axial line of a dipole is Eaxial=2kpr3
Magnitude of intensity of the electric field on the equitorial line of a dipole Eequatorial=kpr3
Given
Eaxial=Eequatorial⇒2kpx3=kpy3
⇒xy=21/31
Comparing with the data given in the question we get, n=3