OFFSET
1,1
LINKS
Lars Felix Lerner, Diagonalizable matrices over finite fields
FORMULA
a(n) = (prime(n)^4 - prime(n)^2 + 2*prime(n))/2 = A101374(prime(n)).
EXAMPLE
a(2) = 8 because there are 8 diagonalizable 2 X 2 matrices over GF(2). They are:
1. [[0,0],[0,0]].
2. [[0,0],[0,1]].
3. [[1,0],[0,0]].
4. [[1,0],[0,1]].
5. [[1,0],[1,0]].
6. [[0,0],[1,1]].
7. [[0,1],[0,1]].
8. [[1,1],[0,0]].
PROG
(PARI) a(n) = my(p=prime(n)); (p^4 - p^2 + 2*p)/2; \\ Michel Marcus, May 01 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Lars Felix Lerner and Elias S. Cleusters, Apr 30 2022
STATUS
approved