Home
Evaluations
Tags
Lectures
Sandbox
About
Contribute
Evaluations
Tags
Lectures
About
Back
Question:
2016 Fall Final - 10
Author: Michiel Smid
Consider strings of characters, each character being $a$, $b$, $c$, $d$, or $e$, in which no two consecutive characters are equal. Let $S_n$ be the number of such strings having length $n$. Which of the following is true for $n \geq 1$?
(a)
$S_n = 5 \cdot 4^{n-1}$
(b)
$S_n = 5 \cdot 4^{n-2}$
(c)
$S_n = 5^{n} - 5(n-1) \cdot 4^{n-2}$
(d)
$S_n = 5^{n} - 5(n-1) \cdot 4^{n-1}$
COMP 2804: Discrete Structures II
COMP 2804 Final Exam
The Product Rule (3.1)
Counting Bitstrings of Length n (3.1.1)