I was trying to calculate the determinant for every $n$ starting with $2$.
If $n$ is $2$ then determinant is $-1$, if $3$ is $-1$, if $4$ is $1$, if $5$ is $1$, if $6$ is $-1$, then I stopped.
It changes every $2 n$ but I don't know how to generalize it.
Any idea?
EDIT: I need to use induction on $n$ but I don't know how.
Do I have to guess a formula first and then prove it with induction? If so, what's the formula?

I found the solution!
Let's expand the determinant along the n-th row. We get:
$det(A_n)=(-1)^{n+1}det(A_{n-1})=(-1)^{n+1}(-1)^{n}...(-1)^{3}=$
$=(-1)^{(n+1)+n+...+3}=(-1)^{(1+2)+3+...+n+(n+1)-(1+2)}=(-1)^{\frac{(n+1)(n+2)}{2}-3}=(-1)^{\frac{n^2+3n-4}{2}}=(-1)^{\frac{(n-1)(n+4)}{2}}$