f(x) = 2x + 1 - f(x+1)
f(x+1) = 2x + 1 - f(x)
f(5) = 4*2 + 1 - f(4) = 7
f(6) = 5*2 + 1 - f(5) = 4
f(7) = 6*2 + 1 - f(6) = 9
f(8) = 7*2 + 1 - f(7) = 6
f(9) = 8*2 + 1 - f(8) = 11
d.h.
f(x) = x-2 für x gerade
f(x) = x+2 für x ungerade
f(x) = x - 2 * (-1)^x
Überprüfung:
\( (x+1) - 2 * (-1)^{x+1} = 2x +1 - (x - 2 * (-1)^{x}) \)
\(- 2 * (-1)^{x+1} = x - (x - 2 * (-1)^{x} ) \)
\(- 2 * (-1)^{x+1} = 2 * (-1)^{x} \)
\( -(-1)^{x+1} = (-1)^{x} \)