Recurrences formulas
Recurrence relations and generating functions. 12 formulas for GATE CS Discrete Mathematics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Recurrence relations and generating functions formulas (GATE CS)
All 12 Recurrences formulas
CATALAN NUMBERS AND DERANGEMENTS
For ; for example and .
CHARACTERISTIC EQUATION
For ; it has degree , so roots over the complex numbers counted with multiplicity. Since , no root is 0.
GENERAL SOLUTION, DISTINCT ROOTS
When all roots are distinct (real or complex); the constants come from the initial conditions.
CONTRIBUTION OF A REPEATED ROOT
A root of multiplicity contributes this term; add the contributions of all roots.
FIBONACCI AND LUCAS CLOSED FORMS
Roots of ; and .
FIRST-ORDER LINEAR RECURRENCE
For with constants and . Example: , gives .
GEOMETRIC SERIES
Coefficients and ; so gives .
LINEAR SEQUENCES
Coefficients and .
NEGATIVE BINOMIAL SERIES
For integer ; counts solutions of in non-negative integers.
FINITE SERIES
For integer ; the second gives a bounded choice of to items.
FIBONACCI AND LUCAS GENERATING FUNCTIONS
With and .
NON-NEGATIVE INTEGER SOLUTIONS
For ; the coefficient of in , i.e. identical objects into distinct boxes. With every the count is (for ; zero if ).
Where this was asked: 2018 (1), 2022 (1), 2023 (1). See the 3 previous-year questions on Recurrences. This shows what was asked, not what will be asked.