What explains the repulsion of the aluminum ring when a magnet is introduced into it and the attraction

What explains the repulsion of the aluminum ring when a magnet is introduced into it and the attraction to the magnet when it is removed from the ring?

An induction current arises in the ring, the magnetic field of which is directed in the first case towards the magnetic field of the magnet, and in the second case in the same direction.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.