document.write( "Question 1209928: The function f satisfies\r
\n" ); document.write( "\n" ); document.write( "f(a + b) = f(a) + f(b) - ab
\n" ); document.write( "for all nonnegative integers a and b, and f(1) = 7. Compute f(123).
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #851071 by CPhill(1959)\"\" \"About 
You can put this solution on YOUR website!
Let the given equation be
\n" ); document.write( "$$f(a+b) = f(a) + f(b) - ab$$
\n" ); document.write( "for all nonnegative integers $a$ and $b$, and $f(1) = 7$.\r
\n" ); document.write( "\n" ); document.write( "First, we find $f(2)$:
\n" ); document.write( "$$f(2) = f(1+1) = f(1) + f(1) - (1)(1) = 7 + 7 - 1 = 13$$
\n" ); document.write( "Next, we find $f(3)$:
\n" ); document.write( "$$f(3) = f(2+1) = f(2) + f(1) - (2)(1) = 13 + 7 - 2 = 18$$
\n" ); document.write( "Next, we find $f(4)$:
\n" ); document.write( "$$f(4) = f(3+1) = f(3) + f(1) - (3)(1) = 18 + 7 - 3 = 22$$\r
\n" ); document.write( "\n" ); document.write( "Let's try to find a pattern.
\n" ); document.write( "$f(1) = 7 = 1^2 + 6(1)$
\n" ); document.write( "$f(2) = 13 = 2^2 + 6(2) + 1$
\n" ); document.write( "$f(3) = 18 = 3^2 + 6(3) - 9 = 9+18 = 27$
\n" ); document.write( "$f(3) = 18 = 3^2 + 6(3) = 9 + 9 = 18$
\n" ); document.write( "$f(4) = 22 = 4^2 + 6(4) - 18 = 16+24-18=22$\r
\n" ); document.write( "\n" ); document.write( "We can guess that $f(x) = x^2 + 6x$.
\n" ); document.write( "Let's check if this satisfies the given equation.
\n" ); document.write( "$$f(a+b) = (a+b)^2 + 6(a+b) = a^2 + 2ab + b^2 + 6a + 6b$$
\n" ); document.write( "$$f(a) + f(b) - ab = (a^2 + 6a) + (b^2 + 6b) - ab = a^2 + 6a + b^2 + 6b - ab$$
\n" ); document.write( "These are not equal. Let's try to find a pattern.\r
\n" ); document.write( "\n" ); document.write( "Let $f(x) = Ax^2 + Bx$.
\n" ); document.write( "$f(1) = A+B = 7$
\n" ); document.write( "$f(2) = 4A + 2B = 13$
\n" ); document.write( "Multiply the first equation by 2:
\n" ); document.write( "$2A + 2B = 14$
\n" ); document.write( "Subtract this from the second equation:
\n" ); document.write( "$2A = -1$
\n" ); document.write( "$A = -1/2$
\n" ); document.write( "$B = 7 - A = 7 + 1/2 = 15/2$
\n" ); document.write( "Thus $f(x) = -\frac{1}{2} x^2 + \frac{15}{2} x$.\r
\n" ); document.write( "\n" ); document.write( "Check:
\n" ); document.write( "$f(a+b) = -\frac{1}{2} (a+b)^2 + \frac{15}{2} (a+b) = -\frac{1}{2} (a^2 + 2ab + b^2) + \frac{15}{2} a + \frac{15}{2} b$
\n" ); document.write( "$f(a) + f(b) - ab = (-\frac{1}{2} a^2 + \frac{15}{2} a) + (-\frac{1}{2} b^2 + \frac{15}{2} b) - ab = -\frac{1}{2} a^2 - \frac{1}{2} b^2 + \frac{15}{2} a + \frac{15}{2} b - ab$
\n" ); document.write( "$f(a+b) = f(a) + f(b) - ab$
\n" ); document.write( "So $f(x) = -\frac{1}{2} x^2 + \frac{15}{2} x$.\r
\n" ); document.write( "\n" ); document.write( "Now, compute $f(123)$:
\n" ); document.write( "$f(123) = -\frac{1}{2} (123)^2 + \frac{15}{2} (123) = \frac{1}{2} (15(123) - 123^2) = \frac{123}{2} (15 - 123) = \frac{123}{2} (-108) = 123(-54) = -6642$\r
\n" ); document.write( "\n" ); document.write( "Final Answer: The final answer is $\boxed{-6642}$
\n" ); document.write( "
\n" ); document.write( "
\n" );