Homework 2 Solutions#
The write-ups below model the amount of explanation expected in a complete handwritten submission.
A constrained integer sum#
Problem. How many integer solutions are there to
Solution.
Approach. Find the smallest possible value of the left-hand side.
Because the variables are integers, the strict inequalities imply
A route through specified points#
Problem. A northeast lattice path uses only unit steps to the right
or unit steps up. How many northeast lattice paths from
Solution.
Approach. Break the path at the three required points and count the four segments independently.
The required points occur in northeast order, so every path through them
breaks uniquely into segments with the following counts:
Anagrams with letters and digits#
Problem. How many anagrams of ABRACADABRA676767 have every
digit before every letter?
Solution.
Approach. Arrange the six digits in the first six positions and the eleven letters in the last eleven positions.
The condition that every digit occurs before every letter forces the six
digits to occupy the first six positions and the eleven letters to occupy the
last eleven positions. The digit block contains three copies of 6 and three
copies of 7, so it has
ABRACADABRA, the letter
Drawing colored balls#
Problem. A bag contains an unlimited supply of red balls and blue balls, and exactly 10 yellow balls. A person draws 15 balls.
How many possible outcomes are there if the order of the draws is irrelevant? Thus an outcome records only how many balls of each color are drawn.
How many possible outcomes are there if the balls are drawn one at a time and placed in a row?
Solution.
(1) Order is irrelevant. An outcome is a triple
The impossible outcomes have
(2) The balls are placed in a row. If yellow balls were unlimited,
there would be
For a fixed
Passwords with increasing digits#
Problem. A password has length 12. Each character is either one of
the 26 lowercase letters or one of the decimal digits
How many passwords satisfy these conditions?
Solution.
Approach. Choose the digit positions, choose the digit values, and then fill the letter positions.
First choose the three positions occupied by digits; there are
The nine letter positions can be filled in