P = diag(2,2,3) = 2 0 0
0 2 0
0 0 3
Q∈M3(Z) invertible;Q−1=QT;PQ=QP
To find: number of such Q
Q−1=QT with integer entries⇒Q is a signed permutation matrix
Q orthogonal, integer entries⇒each column has one ±1
⇒ Q is a signed permutation matrix
Total signed permutation matrices=3!×23=48
PQ=QP⇒Q preserves eigenspaces of P
span(e1,e2)→itself,span(e3)→itself
Q = R 0
0 ± 1 , R ∈ 2u00D72 signed permutation
#R=2!×22=8,third entry: 2 choices
Number of such Q=8×2=16
16 — option (3)