Generate SL2(mod n)
Skeleton for orbit calculation