number theory exam solutions