So our professor at university gave us this assignment for home, we need to calculate the determinant of the following square(N*N) matrix

I have already found that |AN|=a|AN-1| - |AN-2| , but from that point I can't go any further, heard that I need to use difference equations, but unfortunately I am not familiar with them. Thank you in advance, I would be really grateful for any help given