Let $n$ be a positive integer less than $1000$. The remainders obtained when dividing $n$ by $2, 2^2, 2^3, ... , 2^8$, and $2^9$ , are calculated. If the sum of all these remainders is $137$, what are all the possible values of $n$?
Problem
Source: Mathematics Regional Olympiad of Mexico Northeast 2017 P1
Tags: number theory, remainder