\(abc-\left(ab+bc+ca\right)+\left(a+b+c\right)-1\\ =abc-ab-bc-ac+a+b+c-1\\ =\left(abc-ab\right)-\left(bc-b\right)-\left(ac-a\right)+\left(c-1\right)\\ =ab\left(c-1\right)-b\left(c-1\right)-a\left(c-1\right)+\left(c-1\right)\\ =\left(c-1\right)\left(ab-b-a+1\right)\\ =\left(c-1\right)\left[\left(ab-b\right)-\left(a-1\right)\right]\\ =\left(c-1\right)\left[b\left(a-1\right)-\left(a-1\right)\right]\\ =\left(c-1\right)\left(b-1\right)\left(a-1\right)\)