we know that (x-1) is a factor, that means x -1 = 0 or x = 1.
since we know that (x-1) is a factor, then dividing the polynomial by it will give us a remainder of 0, which correlates with saying that f(1) = 0, in this case, so we can simply plug in "1" as the argument, knowing it gives 0.