HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A sequence has a₀ = 1 and a₁ = 6, and an = 6a_(n-1) - 9a_(n-2) for n ≥ 2…
HardMathematicsHigh School (11–12)Pigeonhole Principle, Recursion and Graph TheoryNumericalOlympiad

A sequence has a₀ = 1 and a₁ = 6, and an = 6a_(n-1) - 9a_(n-2) for n ≥ 2…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A sequence has a0=1a_0 = 1a0​=1 and a1=6a_1 = 6a1​=6, and an=6an−1−9an−2a_n = 6a_{n-1} - 9a_{n-2}an​=6an−1​−9an−2​ for n≥2n \ge 2n≥2. The characteristic equation has a repeated root, so the usual form Arn+BsnAr^n + Bs^nArn+Bsn cannot fit both starting values.

Find the repeated root. Write the general solution for a repeated root, and fit its two constants. Then find a5a_5a5​ from your formula, and check it by working out the terms one by one.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

For an=pan−1+qan−2a_n = pa_{n-1} + qa_{n-2}an​=pan−1​+qan−2​ solve x2=px+qx^2 = px + qx2=px+q. Two different roots give an=Arn+Bsna_n = Ar^n + Bs^nan​=Arn+Bsn; a double root gives an=(A+Bn)rna_n = (A + Bn)r^nan​=(A+Bn)rn. For an=can−1+da_n = ca_{n-1} + dan​=can−1​+d use the fixed point L=cL+dL = cL + dL=cL+d.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The root. x2−6x+9=(x−3)2=0x^2 - 6x + 9 = (x - 3)^2 = 0x2−6x+9=(x−3)2=0, so the root 333 is repeated.

Step 2. The form. an=(A+Bn)3na_n = (A + Bn)3^nan​=(A+Bn)3n.

Step 3. Fit. n=0n = 0n=0 gives A=1A = 1A=1. n=1n = 1n=1 gives 3(1+B)=63(1 + B) = 63(1+B)=6, so B=1B = 1B=1. Hence an=(1+n)3na_n = (1 + n)3^nan​=(1+n)3n.

Step 4. The fifth term. a5=6×243=1458a_5 = 6 \times 243 = 1458a5​=6×243=1458.

Check. The recurrence gives 1, 6, 27, 108, 405, 1458.

Watch out. Trying A⋅3n+B⋅3nA \cdot 3^n + B \cdot 3^nA⋅3n+B⋅3n gives one constant A+BA + BA+B, which cannot match two starting values.

Answer: the root 333 is repeated, and a5=1458a_5 = 1458a5​=1458.

Log in to save this for later
← All Problems
← A sequence starts with a₀ = 2 and a₁ = 5, and every later term follows the rule an = 5a_(n-1)…A culture of cells triples every hour. At the end of each hour a technician removes 4 thousand… →
More onPigeonhole Principle, Recursion and Graph Theory

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Solving linear recurrencesRecurrences and Counting by Recursion

More on this topic

  1. The 15 edges of K₆ are coloured red or blue…Advanced
  2. Three houses each need a path to each of three wells, nine paths in all, drawn on flat ground…Advanced
  3. A connected planar graph with 10 vertices is drawn without crossings, and every face of the…Hard
  4. The complete bipartite graph K_(m,n) joins each of m left vertices to each of n right vertices…
Advanced
  • A river town has five land areas, A, B, C, D and E, joined by ten bridges…Hard
  • All problems on this topic →