Exercise "Smallest multiple, purely algebraic solution "