SOLUTION: The function f satisfies
f(a + b) = f(a) + f(b) - ab
for all nonnegative integers a and b, and f(1) = 7. Compute f(123).
Algebra ->
Functions
-> SOLUTION: The function f satisfies
f(a + b) = f(a) + f(b) - ab
for all nonnegative integers a and b, and f(1) = 7. Compute f(123).
Log On
Find f(4) in a different way to make sure the recursive definition is valid:
f(4)=f(2+2)=f(2)+f(2)-4=13+13-4=22
Find f(5) in two different ways:
f(5)=f(1+4)=f(1)+f(4)-4=7+22-4=25
f(5)=f(2+3)=f(2)+f(3)-6=13+18-6=25
The recursive definition appears to be valid.
The values of f(1) to f(5) form a sequence with a clear pattern:
7, 13, 18, 22, 25, ...
The differences between successive terms are decreasing by 1.
To find the value of f(123), we want to have an explicit formula for the n-th term. One way we can find that formula is using the method of finite differences.
Here is a display of the first few terms of the sequence and the first and second differences:
7 13 18 22 26
6 5 4 3
-1 -1 -1
The constant difference of 1- means the sequence can be produced with a polynomial of degree 2 with leading coefficient -1/(2!) = -1/2. So the sequence can be formed with a polynomial of the form
To find the coefficients a and b, we can compare the given sequence to the sequence formed by the polynomial .