I am having trouble understanding the solution for the following problem:
Show that when dividing n x n by n+1, the remainder is always 1.
I have attempted to solve it using modular equations:
$$n \times n \equiv r \pmod{n+1}$$
Which simplifies to:
$$n^2 \equiv r \pmod{n+1}$$
However, when trying different values for n, I am not getting the expected result of the remainder always being 1. Can anyone please explain or provide a step-by-step breakdown of how this solution works for different values of $n$? I would greatly appreciate any help or guidance on this matter.