elementary number theory solutions