Part A: brute force from N = 1, all pairs, 1 <= h <= 8
  h=1 least N=3 first set found {0,1,2}
  h=2 least N=7 first set found {0,1,3}
  h=3 least N=13 first set found {0,1,4}
  h=4 least N=19 first set found {0,1,8}
  h=5 least N=30 first set found {0,1,9}
  h=6 least N=37 first set found {0,1,11}
  h=7 least N=49 first set found {0,1,19}
  h=8 least N=61 first set found {0,1,14}
Part B: exhaustive search from ceil(3k^2/4), formula and witnesses
  h=1 k=2 phi_c(h,2)=3 formula=3 witness={0,1,2} in Z_3
  h=2 k=3 phi_c(h,2)=7 formula=7 witness={0,1,3} in Z_7
  h=3 k=4 phi_c(h,2)=13 formula=13 witness={0,1,4} in Z_13
  h=4 k=5 phi_c(h,2)=19 formula=19 witness={0,2,5} in Z_19
  h=5 k=6 phi_c(h,2)=30 formula=30 witness={0,1,22} in Z_30
  h=6 k=7 phi_c(h,2)=37 formula=37 witness={0,3,7} in Z_37
  h=7 k=8 phi_c(h,2)=49 formula=49 witness={0,3,8} in Z_49
  h=8 k=9 phi_c(h,2)=61 formula=61 witness={0,4,9} in Z_61
  h=9 k=10 phi_c(h,2)=79 formula=79 witness={0,3,10} in Z_79
  h=10 k=11 phi_c(h,2)=91 formula=91 witness={0,5,11} in Z_91
  h=11 k=12 phi_c(h,2)=109 formula=109 witness={0,5,12} in Z_109
  h=12 k=13 phi_c(h,2)=127 formula=127 witness={0,6,13} in Z_127
  h=13 k=14 phi_c(h,2)=151 formula=151 witness={0,5,14} in Z_151
  h=14 k=15 phi_c(h,2)=169 formula=169 witness={0,7,15} in Z_169
  h=15 k=16 phi_c(h,2)=193 formula=193 witness={0,7,16} in Z_193
  h=16 k=17 phi_c(h,2)=217 formula=217 witness={0,8,17} in Z_217
  h=17 k=18 phi_c(h,2)=247 formula=247 witness={0,7,18} in Z_247
  h=18 k=19 phi_c(h,2)=271 formula=271 witness={0,9,19} in Z_271
  h=19 k=20 phi_c(h,2)=301 formula=301 witness={0,9,20} in Z_301
  h=20 k=21 phi_c(h,2)=331 formula=331 witness={0,10,21} in Z_331
  h=21 k=22 phi_c(h,2)=367 formula=367 witness={0,9,22} in Z_367
  h=22 k=23 phi_c(h,2)=397 formula=397 witness={0,11,23} in Z_397
  h=23 k=24 phi_c(h,2)=433 formula=433 witness={0,11,24} in Z_433
  h=24 k=25 phi_c(h,2)=469 formula=469 witness={0,12,25} in Z_469
  h=25 k=26 phi_c(h,2)=511 formula=511 witness={0,11,26} in Z_511
  h=26 k=27 phi_c(h,2)=547 formula=547 witness={0,13,27} in Z_547
  h=27 k=28 phi_c(h,2)=589 formula=589 witness={0,13,28} in Z_589
  h=28 k=29 phi_c(h,2)=631 formula=631 witness={0,14,29} in Z_631
  h=29 k=30 phi_c(h,2)=679 formula=679 witness={0,13,30} in Z_679
  h=30 k=31 phi_c(h,2)=721 formula=721 witness={0,15,31} in Z_721
  h=31 k=32 phi_c(h,2)=769 formula=769 witness={0,15,32} in Z_769
  h=32 k=33 phi_c(h,2)=817 formula=817 witness={0,16,33} in Z_817
  h=33 k=34 phi_c(h,2)=871 formula=871 witness={0,15,34} in Z_871
  h=34 k=35 phi_c(h,2)=919 formula=919 witness={0,17,35} in Z_919
  h=35 k=36 phi_c(h,2)=973 formula=973 witness={0,17,36} in Z_973
  h=36 k=37 phi_c(h,2)=1027 formula=1027 witness={0,18,37} in Z_1027
  h=37 k=38 phi_c(h,2)=1087 formula=1087 witness={0,17,38} in Z_1087
  h=38 k=39 phi_c(h,2)=1141 formula=1141 witness={0,19,39} in Z_1141
  h=39 k=40 phi_c(h,2)=1201 formula=1201 witness={0,19,40} in Z_1201
  h=40 k=41 phi_c(h,2)=1261 formula=1261 witness={0,20,41} in Z_1261
  h=41 k=42 phi_c(h,2)=1327 formula=1327 witness={0,19,42} in Z_1327
Part C: case analysis of Lemma 3.2 (pairs with det <= 3r^2+4)
  r=3 (det, gcd) = [(27, 3), (28, 2), (30, 1), (31, 1)]
  r=4 (det, gcd) = [(48, 4), (49, 1), (52, 1), (52, 2)]
  r=5 (det, gcd) = [(75, 5), (76, 2), (79, 1)]
  r=6 (det, gcd) = [(108, 6), (109, 1), (112, 4)]
  r=7 (det, gcd) = [(147, 7), (148, 2), (151, 1)]
  r=8 (det, gcd) = [(192, 8), (193, 1), (196, 2)]
  r=9 (det, gcd) = [(243, 9), (244, 2), (247, 1)]
  r=10 (det, gcd) = [(300, 10), (301, 1), (304, 4)]
  r=11 (det, gcd) = [(363, 11), (364, 2), (367, 1)]
  r=12 (det, gcd) = [(432, 12), (433, 1), (436, 2)]
  r=13 (det, gcd) = [(507, 13), (508, 2), (511, 1)]
  r=14 (det, gcd) = [(588, 14), (589, 1), (592, 4)]
  r=15 (det, gcd) = [(675, 15), (676, 2), (679, 1)]
  r=16 (det, gcd) = [(768, 16), (769, 1), (772, 2)]
  r=17 (det, gcd) = [(867, 17), (868, 2), (871, 1)]
  r=18 (det, gcd) = [(972, 18), (973, 1), (976, 4)]
  r=19 (det, gcd) = [(1083, 19), (1084, 2), (1087, 1)]
  r=20 (det, gcd) = [(1200, 20), (1201, 1), (1204, 2)]
  r=21 (det, gcd) = [(1323, 21), (1324, 2), (1327, 1)]
  r=22 (det, gcd) = [(1452, 22), (1453, 1), (1456, 4)]
  r=23 (det, gcd) = [(1587, 23), (1588, 2), (1591, 1)]
  r=24 (det, gcd) = [(1728, 24), (1729, 1), (1732, 2)]
  r=25 (det, gcd) = [(1875, 25), (1876, 2), (1879, 1)]
  r=26 (det, gcd) = [(2028, 26), (2029, 1), (2032, 4)]
  r=27 (det, gcd) = [(2187, 27), (2188, 2), (2191, 1)]
  r=28 (det, gcd) = [(2352, 28), (2353, 1), (2356, 2)]
  r=29 (det, gcd) = [(2523, 29), (2524, 2), (2527, 1)]
  r=30 (det, gcd) = [(2700, 30), (2701, 1), (2704, 4)]
ALL PASS
