The magnetic field at the centre of coil of n turns, bent in the form of a square of side 2l , carrying current i, is
Magnetic field due to one side of the square at centre O
Hence, magnetic field at centre due to all sides
Magnetic field due to n turns,