We are given the function:
\[ f(x) = |x - a| + |x - 100| + |x - (a + 50)| \] and asked to find the value of \( a \) that maximizes \( f(x) \).
We analyze three cases based on the value of \( x \) relative to \( a \) and \( a + 50 \):
We now compare the maximum values from each case: - In Case 1, the maximum value is \( 2a + 150 \). - In Case 2, the function reaches a maximum at \( x = a \). - In Case 3, the maximum value occurs at \( x = 100 \).
To maximize \( f(x) \), we need to maximize the expression \( 2a + 150 \), which occurs when \( a = 100 \).
The maximum value of \( f(x) \) is 100, which occurs when \( a = 100 \).
The correct answer is \( \boxed{100} \).
When $10^{100}$ is divided by 7, the remainder is ?