@H.PWiz There are at least two things left to prove about
division. 1) That C≡B (mod A-1) and C≡A (mod B-1) together always give the correct quotient, and 2) That using just the C≡B (mod A-1) test, finding the smallest matching quotient, will always give the right answer when A^2>C≥A (or perhaps a looser inequality)