Free Online Flashcard Deck

08 Sequences and Recurrences Free Online FlashCards

Study 08 Sequences and Recurrences with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What makes a recursive algorithm correct?

Back

A recursive algorithm needs a base case that is solved directly and a recursive case that reduces the input toward that base case.

02
Front

Why must a sequence’s starting index be specified?

Back

The starting index matters because the same formula can produce different terms when indexing begins at different values.

03
Front

What is the general term of an arithmetic sequence?

Back

An arithmetic sequence has constant difference dd, and its general term is an=a0+nda_n=a_0+nd.

04
Front

How do you sum the first n+1n+1 terms of an arithmetic sequence?

Back

The sum of the first n+1n+1 terms is ∑k=0nak=n+12(a0+an)\displaystyle\sum_{k=0}^{n}a_k=\frac{n+1}{2}(a_0+a_n).

05
Front

What is the finite geometric-series formula?

Back

For r≠1r\ne1, the finite geometric sum is ∑k=0na0rk=a01−rn+11−r\displaystyle\sum_{k=0}^{n}a_0r^k=a_0\frac{1-r^{n+1}}{1-r}.

06
Front

What is the sum of an infinite geometric series when ∣r∣<1|r|<1?

Back

When ∣r∣<1|r|<1, the infinite geometric series converges to ∑k=0∞a0rk=a01−r\displaystyle\sum_{k=0}^{\infty}a_0r^k=\frac{a_0}{1-r}.

07
Front

How does summation distribute over a linear combination?

Back

By linearity, ∑k=mn(cf(k)+dg(k))=c∑k=mnf(k)+d∑k=mng(k)\displaystyle\sum_{k=m}^{n}(cf(k)+dg(k))=c\sum_{k=m}^{n}f(k)+d\sum_{k=m}^{n}g(k).

08
Front

What is the result of a telescoping sum?

Back

If f(k)=g(k+1)−g(k)f(k)=g(k+1)-g(k), then ∑k=mnf(k)=g(n+1)−g(m)\displaystyle\sum_{k=m}^{n}f(k)=g(n+1)-g(m); the intermediate terms cancel.

09
Front

Reindex ∑k=1nak−1\displaystyle\sum_{k=1}^{n}a_{k-1} using j=k−1j=k-1.

Back

Substituting j=k−1j=k-1 changes the expression to ∑j=0n−1aj\displaystyle\sum_{j=0}^{n-1}a_j. The bounds must change with the index.

10
Front

What is the order of an=4an−1−an−2a_n=4a_{n-1}-a_{n-2}?

Back

The recurrence an=4an−1−an−2a_n=4a_{n-1}-a_{n-2} is second-order because it uses the two preceding terms.

11
Front

What recurrence counts square-and-domino tilings of a 1×n1\times n board?

Back

The tiling count satisfies an=an−1+an−2a_n=a_{n-1}+a_{n-2}: a final square leaves an (n−1)(n-1)-board, while a final domino leaves an (n−2)(n-2)-board.

12
Front

How is the characteristic equation formed?

Back

For a homogeneous recurrence of order kk, substituting an=rna_n=r^n gives rk−c1rk−1−c2rk−2−⋯−ck=0r^k-c_1r^{k-1}-c_2r^{k-2}-\cdots-c_k=0.