COUNTEREXAMPLE to brutePairs: W=6 p=5 S=[1,4] brutePairs=3 correct=2 (firstDel=false, lastDel=true) COUNTEREXAMPLE to brutePairs: W=6 p=5 S=[2,4] brutePairs=2 correct=1 (firstDel=false, lastDel=true) COUNTEREXAMPLE to brutePairs: W=6 p=5 S=[1,2,4] brutePairs=3 correct=2 (firstDel=false, lastDel=true) COUNTEREXAMPLE to brutePairs: W=6 p=5 S=[1,3,4] brutePairs=3 correct=2 (firstDel=false, lastDel=true) Why it never fires on the project tiles: W-1 satisfies (W-1) mod q = q-1 and (W+1) mod q = 1 for every q | W, so W-1 is in T_x for every x. Hence the last slot of the pre-deletion new tile is (W-1)+(p-1)W = pW-1 = -1 (mod p), and -1 is in {0,-2} (mod p) only if p | 1: prevDel is 0 at the seam for every fold of every T_x.