Assume you have an iron core in the interior of the solenoid. It is well known that the strength of the field should increase by a factor of several hundred inside the solenoid as a result of the iron core.
However, at the boundary between the iron core and the surrounding air, what happens to the magnetic field strength? Does it instantaneously (with respect to position) drop by a factor of several hundred, or is there a gradual drop (so that the magnetic field immediately surrounding the iron core is stronger than in the air outside)?