Problem

Source: Mathematics Regional Olympiad of Mexico Northeast 2017 P1

Tags: number theory, remainder



Let n be a positive integer less than 1000. The remainders obtained when dividing n by 2,22,23,...,28, and 29 , are calculated. If the sum of all these remainders is 137, what are all the possible values of n?