We characterize sequences of positive integers (a 1 , a 2 , . . . , a n ) for which the 2 × 2 matrix a n − 1 1 0is either the identity matrix Id, its negative − Id, or square root of − Id. This extends a theorem of Conway and Coxeter that classifies such solutions subject to a total positivity restriction.