Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory senior

Problem

Square each integer in the range and find the remainders when the squares are divided by . Add up all the distinct results and call it . What is the quotient when is divided by ?
Solution
First notice that , and since we're asked to find distinct results, we only need to compute the squares of . Respectively, . Thus, .
Final answer
2