A long solenoid with its axis as the z-axis and uniform cross-section perpendicular to the z-axis carries a current I and has a turn density n in vacuum.
Compute the magnetic field it produces everywhere if its cross-section is circular.