Just a brainteaser question: Can you identify the generator of the following pattern of numbers?

Remark on any interesting patterns you see in the triangle.
Just a brainteaser question: Can you identify the generator of the following pattern of numbers?

Remark on any interesting patterns you see in the triangle.
Copyright © 2021 JogjaFile Inc.
Well, the numbers are the perfect squares $1^2, 2^2, \ldots (n-1)^2$ mod $n$ (starting from $n=2$).
There are an incredible number of patterns/theorems relating to the number/type of quadratic residues mod $n$. Is there something you're curious about specifically?