# The rest of $$a^2+b^2$$

If $$a$$ and $$b$$ are integers such $$a+5b$$ and $$5a-b$$ are divisible by 2002. Calculate the remainder of $$a^2+b^2$$ when divided by 2002.

×