To find the remainder when \( P(x) \) is divided by \( (x-1)(x-2)(x-5) \)
, we'll use the Remainder Theorem.
Given that \( P(x) \) gives a remainder of 1 when divided by \( x-1 \) and a remainder of 5 when divided by \( (x-2)(x-3) \), we can write \( P(x) \) as:
\[ P(x) = (x - 1)Q_1(x) + 1 \]
\[ P(x) = (x - 2)(x - 3)Q_2(x) + 5 \]
Now, we want to express \( P(x) \) in terms of \( (x-1)(x-2)(x-5) \).
\[ P(x) = (x - 1)(x - 2)(x - 5)Q(x) + R(x) \]
We are looking for the remainder \( R(x) \).
Since \( P(x) \) and \( R(x) \) have the same remainders when divided by \( (x-1) \) and \( (x-2)(x-3) \), respectively, we can equate them:
\[ (x - 1)Q_1(x) + 1 = (x - 1)(x - 2)(x - 5)Q(x) + R(x) \]
\[ (x - 1)(Q_1(x) - (x - 2)(x - 5)Q(x)) = R(x) - 1 \]
Now, since \( (x-1) \) divides the left-hand side and \( (x-1)(x-2)(x-5) \) divides the right-hand side, the remainder \( R(x) - 1 \) must be a constant.
Let's denote \( R(x) - 1 = c \), where \( c \) is a constant.
Thus, the remainder when \( P(x) \) is divided by \( (x-1)(x-2)(x-5) \) is \( \boxed{c + 1} \), where \( c \) is the constant determined from the previous step.