Official papers

Official 2017 Paper 2 · Q15

Paper 2Functions & graphs

The function ff is defined on the positive integers as follows:

f(1)=5, and for n≥1:f(n+1)=3f(n)+1if f(n) is oddf(n+1)=12f(n)if f(n) is evenf(1)=5,\text{ and for }n\geq1:\qquad \begin{aligned} f(n+1)&=3f(n)+1&&\text{if }f(n)\text{ is odd}\\ f(n+1)&=\tfrac12f(n)&&\text{if }f(n)\text{ is even} \end{aligned}

The function gg is defined on the positive integers as follows:

g(1)=3, and for n≥1:g(n+1)=g(n)+5if g(n) is oddg(n+1)=12g(n)if g(n) is eveng(1)=3,\text{ and for }n\geq1:\qquad \begin{aligned} g(n+1)&=g(n)+5&&\text{if }g(n)\text{ is odd}\\ g(n+1)&=\tfrac12g(n)&&\text{if }g(n)\text{ is even} \end{aligned}

What is the value of f(1000)−g(1000)f(1000)-g(1000)?

A−6-6
B−5-5
C11
D22
E44
F88

Read the questions freely. Sign in to check your answer, see the worked solution and save your progress.