Remainders of Squares
Difficulty: Medium · Topics: Algebra, Functions, Function Values
Kvadratlarning qoldiqlari
For each natural number n, f(n) is the remainder when n^2 is divided by 7.
Find the sum of all elements in the range of f.
Har bir n natural son uchun f(n) — n^2 ni 7 ga bo‘lgandagi qoldiq.
f ning qiymatlar sohasidagi barcha elementlar yig‘indisini toping.