| CS 242, Section 002 | Sonoma State University | Spring, 2026 |
|
Discrete Structures for Computer Science
|
||
|
Instructor: Henry M. Walker
Lecturer, Sonoma State University | ||
Notes:
California License Plates for Cars:
In California, car owners can pay extra, so that their license
plates have a particular label. For example, one might want the
text "CS 242" as their car license plate. (I don't know if such a
label is possible in California, and if even it is legal, the
Department of Motor Vehicles would have to check that no other car
has that text.) Such a license plate is sometimes called a
"vanity plate."
Ignoring vanity plates, many California license plates have the form D L L L D D D, where D is a digit (0, 1, 2, . . . , 9) and L is an upper-case letter (A, B, . . . , Z). Compute how many license plates of this form are possible.
Computing Permutations and Combinations:
Given an initial set of n elements, Sections 10.4 and 10.5 of
the textbook define r-permutations P(n,r) and r-combinations
C(n, r).
The
California Lottery Powerball Game: To play the
California Lottery Powerball Game, you "pick 5 numbers between
1 and 69 and 1 Power Number between 1 and 26." You win the
jackpot if the first five numbers you pick match the first five
numbers drawn and your sixth number matches the sixth number
drawn.
Note: In this Powerball Game, the order in which you
pick the first five numbers does not matter.
A Note for Comparison: For residents of the United States, the average chance for a person to be killed by lightening is 1 in 1.2 million for a year, or 1 in 15,300 over a lifetime—although individual odds depend on the area where you live and some characteristics of your life style. (Using this average, you are about 240 times more likely to be hit by lightening this year than to win the Powerball Game—assuming you play the game at all.)
|
created October 25, 2025 revised October-November, 2025 |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |