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 starts with a₀ = 2 and a₁ = 5, and every later term follows the rule an = 5a_(n-1)…
HardMathematicsHigh School (11–12)Pigeonhole Principle, Recursion and Graph TheoryNumericalOlympiad

A sequence starts with a₀ = 2 and a₁ = 5, and every later term follows the rule an = 5a_(n-1)…

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 starts with a0=2a_0 = 2a0​=2 and a1=5a_1 = 5a1​=5, and every later term follows the rule an=5an−1−6an−2a_n = 5a_{n-1} - 6a_{n-2}an​=5an−1​−6an−2​. Neha wants a6a_6a6​ but would like a formula rather than a long table.

Write the characteristic equation and find its two roots. Find the constants AAA and BBB in an=A⋅2n+B⋅3na_n = A \cdot 2^n + B \cdot 3^nan​=A⋅2n+B⋅3n from the starting values. Then use the formula to find a6a_6a6​, and check it with the recurrence.

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 equation. x2−5x+6=0x^2 - 5x + 6 = 0x2−5x+6=0, so (x−2)(x−3)=0(x - 2)(x - 3) = 0(x−2)(x−3)=0 and the roots are 222 and 333.

Step 2. The constants. A+B=2A + B = 2A+B=2 and 2A+3B=52A + 3B = 52A+3B=5. Subtract twice the first from the second: B=1B = 1B=1, and then A=1A = 1A=1.

Step 3. The formula. an=2n+3na_n = 2^n + 3^nan​=2n+3n.

Step 4. The sixth term. a6=64+729=793a_6 = 64 + 729 = 793a6​=64+729=793.

Check. The recurrence gives 2, 5, 13, 35, 97, 275, 793. The last term matches.

Answer: A=1A = 1A=1, B=1B = 1B=1 and a6=793a_6 = 793a6​=793.

Log in to save this for later
← All Problems
← A strip of 2 rows and n columns is covered with tiles, with no gaps and no overlaps…A sequence has a₀ = 1 and a₁ = 6, and an = 6a_(n-1) - 9a_(n-2) for n ≥ 2… →
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 →