As in both cases, length of the wire will remain the same, therefore
l=(2πR)N=(2πr)n⇒rR=Nn
Now magnetic field due to single circular coil is given by, B=(2rμ0I).
Therefore, required ratio of total magnetic field wil be,
B2B1=n(2rμ0I)N(2Rμ0I)=(n2N2)