Algebra · real student question

A recipe uses 105 millilitres of sauce on day 1 and 85 millilitres on day 2. From day 3 onward, the amount used each day is the average of the amounts used on the two previous days. What is the integer part of the amount used on day 19?

Question

A recipe uses 105105 mL of sauce on day 11 and 8585 mL on day 22. From day 33 onward, the amount used each day is the average of the two previous days:

a1=105,a2=85,an=an1+an22  (n3)a_1=105,\qquad a_2=85,\qquad a_n=\frac{a_{n-1}+a_{n-2}}{2}\ \ (n\ge3)

What is the integer part of a19a_{19}?

Step-by-step solution

  1. Work with the differences, not the terms. Subtracting an1a_{n-1} from the recurrence gives

    anan1=an1+an22an1=an1an22a_n-a_{n-1}=\frac{a_{n-1}+a_{n-2}}{2}-a_{n-1}=-\frac{a_{n-1}-a_{n-2}}{2}

    So each gap is exactly 12-\tfrac12 times the previous gap. Turning the two-term recurrence into a one-term geometric one is what makes term 1919 reachable without listing everything.

  2. Write the gaps explicitly. The first gap is a2a1=20a_2-a_1=-20, so

    anan1=20(12)n2a_{n}-a_{n-1}=-20\left(-\frac12\right)^{n-2}

    The alternating sign is why the terms zig-zag (105, 85, 95, 90, 92.5,105,\ 85,\ 95,\ 90,\ 92.5,\dots) instead of marching one way.

  3. Sum the geometric series to get the limit. Adding all the gaps from a1a_1 onward:

    L=105+k=0(20)(12)k=105201+12=105403=2753L=105+\sum_{k=0}^{\infty}(-20)\left(-\frac12\right)^{k}=105-\frac{20}{1+\frac12}=105-\frac{40}{3}=\frac{275}{3}

    Equivalently L=a1+2a23L=\dfrac{a_1+2a_2}{3}: the weighted average with the newer term counted twice, because the invariant an1+2ana_{n-1}+2a_n is unchanged by the recurrence. It is not 2a2a12a_2-a_1.

  4. Build the closed form. Since the deviation from LL shrinks by the factor 12-\tfrac12 each step,

    an=L+(a1L)(12)n1=2753+403(12)n1a_n=L+(a_1-L)\left(-\frac12\right)^{n-1}=\frac{275}{3}+\frac{40}{3}\left(-\frac12\right)^{n-1}

    Check it at n=2n=2: 2753203=85\tfrac{275}{3}-\tfrac{20}{3}=85. Correct.

  5. Evaluate at n=19n=19. The exponent 1818 is even, so the correction is positive:

    a19=2753+4031218=30037353276891.66672a_{19}=\frac{275}{3}+\frac{40}{3}\cdot\frac{1}{2^{18}}=\frac{3003735}{32768}\approx 91.66672

  6. Take the integer part. Since 91<a19<9291<a_{19}<92, the integer part is 9191. A direct iteration of the recurrence in exact fractions reproduces a19=300373532768a_{19}=\tfrac{3003735}{32768}, confirming the closed form.

Answer

a19=30037353276891.6667,integer part=91a_{19}=\frac{3003735}{32768}\approx 91.6667,\quad \text{integer part}=91

Need to solve a different problem like this? Open the solver →