左辺=ab−2a−b+1=a(b-2)-(b-2)-1=(a−1)(b−2)-1