I was going through my school papers and found an interesting question, so I experimented a bit more and found out a pattern, so I made a formula for such matrices.
$$A = \begin{bmatrix}x&-(x-1)\\x+1&-x\end{bmatrix}$$ where $x > 0$ is an integer
$$A^n = \begin{cases} I, & \text{if $n$ is even} \\ A, & \text{if $n$ is odd} \end{cases}$$ where $I$ is identity matrix of order 2.
I just wanted to know if this has been found before or whether it has a name too or if there are some cases that does not obey this.
Hope someone can format my question properly, I'm new to this community. Hope this is the correct way of putting things together too. Thanks!!