The student's observations demonstrate:
The electromagnet's magnetic field is stronger when close to it than far from it.
This is evident from the fact that at greater distances (20 inches), no force is required to hold the horseshoe magnet in place, while at closer distances (10 inches and 5 inches), increasing force is needed, indicating that the strength of the magnetic field decreases with distance.