1-1000 | Math Problem

Click here to read the complete problem statement.