Inverse[{{p, -p, 0}, {-(1 - p), 1, -p}, {0, 0, 1 - p}}] . {{1}, {1}, {1}}