Let f(n)={n3+2n−1n−1 if n>1, if n≤1.Find f(0)+f(1)+f(2).
Solution — click to reveal
Since 0≤1, we use the second case to find f(0)=0−1=−1. Since 1≤1, we again use the second case to find f(1)=1−1=0. Since 2>1, we use the first case to find f(2)=23+2(2)−1=11. Therefore, f(0)+f(1)+f(2)=−1+0+11=10.