Home
Evaluations
Tags
Lectures
Sandbox
About
Contribute
Evaluations
Tags
Lectures
About
Back
Question:
2015 Fall Final - 6
Author: Michiel Smid
Consider strings of characters, each character being $a$, $b$, or $c$, that contain at least one $a$. Let $S_n$ be the number of such strings having length $n$. Which of the following is true?
(a)
$S_n = n \cdot 3^{n-1}$
(b)
$S_n = n \cdot 2^{n-1}$
(c)
$S_n = 3^{n} - 2^{n}$
(d)
$S_n = 3^{n} - n$
COMP 2804: Discrete Structures II
COMP 2804 Final Exam
Counting Bitstrings of Length n (3.1.1)
The Complement Rule (3.3)