Lattice Paths and Friends
Lattice Paths and Friends
1 Lattice Paths
1. (Moving Up and Right) For this problem, every step is either one unit to the right or one
unit up. (Note: a “way” to go from a to b is a sequence of moves, eg. UURURRR)
(a) How many ways are there to go from (0, 0) to (2, 3)?
(b) How many ways are there to go from (1, 1) to (4, 7)?
(c) In general, how many ways are there to from (0, 0) to (m, n)?
2. (Moving on the Grid) For this problem, every step is either one unit up, down, left, or right.
(a) How many ways are there to go from (0, 0) to (4, 3) using exactly one left and no downs?[1]
(b) How many ways are there to go from (0, 0) to (3, 5) in exactly 10 moves? 11 moves? 12?
(c) How many ways are there to go from (0, 0) to (4, 3) using exactly one left and no downs
when you must stay within the rectangle (i.e. at any point (x, y) in your path, 0 ≤ x ≤ 4
and 0 ≤ y ≤ 3)?
3. (Flying along the path) You have acquired a jet pack which allows you to go 2 units right
(it’s picky and only goes right). For this problem, every step is either one unit right, one unit
up, or two units right (using your jetpack).
(a) How many ways are there to go from (0, 0) to (7, 3) if you only have fuel for one use of
the jetpack?
(b) If you have unlimited fuel, how many ways are there to go from (0, 0) to (7, 3)?
4. (A hole in the middle) For this problem, every step is either one unit right or one unit up.
(a) How many ways are there to go from (0, 0) to (5, 3) avoiding (1, 1), (1, 2), (2, 1), (2, 2)?
1. How many unique ways are there to rearrange the letters in LATTICEPATHS?
2. Annie, Batman, C.J., David, and Emily get on an elevator in Wean hall on the 1st floor. The
elevator opens on each floor as it rises to the 8th floor (so there are 8 places where people may
get off). How many ways are there for them to be anti-social (all get off at different floors)?
[1]
Hint: How many steps do you need to take?
1
Sequences and Series Western PA Fall 2017 Page 2
3. Using only the digits 1 through 6, with repetition allowed, how many ways are there are to
make a 6-digit number divisible by 5? Divisible by 4? [2]
4. It is the future, and you are now old. So, you must be the one providing Halloween candy to
the children that come to your door. You have bought 22 candies, and 8 kids come to the
door. You may not eat any candy yourself. How many ways can you distribute the candy to
the children? How many ways can you distribute the candy if the parents glare at you until
you give each child at least 1 piece?
5. Misha has become the supreme overlord of Earth, and has mandated that all decks of cards
must now come with a 5th suit - the Squirrel suit (so a deck now has 65 cards, with 5 suits
of 13 cards each). Calculate the proper ranking of poker hands for these new decks (i.e, rank
the number of distinct pairs, triples, full houses, 4-of-a-kinds, 5-of-a-kinds, straights, flushes,
and straight flushes there are in such a deck).
3 Challenge Problems
1. A palindrome on the alphabet {1, 0} is a sequence of 1’s and 0’s which reads the same from
left to right as it does from right to left. Let P (n) denote the number of palindromes of length
n over {1, 0}. For how many values of n is 1000 < P (n) < 10000?
2. Let there be 36 people in a class. Every day, we split these people into 6 groups of 6, where
no 2 people are allowed to be in the same group more than once. How many times can we do
this split? If we have 100 people instead, splitting into 25 groups of 4, how many times can
we split?
4 Background
• nk = k!(n−k)!
n!
counts the number of ways to pick k things from n distinguishable things
without order (eg. the number of ways to arrange k *’s and n − k |’s).
• If you can split what you are counting into nonoverlapping cases which cover all possibilities,
you can add up the results you get for each of these cases to get a result for the entire thing.
• If you have a fixed process of steps to decide how to pick your objects (eg. pick a card by
picking a suit, 4 ways, and a rank, 13 ways), and you know the number of ways to accomplish
each step, you can multiply the numbers of ways per step to get the total number of ways to
complete the process (so in this case we have 4 · 13 = 52 ways to pick a card).
• If you can count the number of “bad” ways to do something, then subtracting that from the
total number of ways to do that thing will give you the number of “good” ways to do that
thing. (This is often called complementary counting).
• It’s often good to count the same thing in multiple ways to check your answer!
[2]
Hint: A number is divisible by 4 if and only if the last 2 digits of that number are also divisible by 4
2
Sequences and Series Western PA Fall 2017 Page 3
5 Selected Solutions
5
1. (a) There are = 10 ways to order 3 ‘R’s and 2 ‘U’s.
3
(b) You need 3 ‘R’s and 6 ‘U’s, so there are 93 = 84 paths.
4. The only ways to avoid the square are by going right 3 times orup 3 times for our first 3
moves. With 3 rights: 2 rights and 3 ups remain for a total of 52 = 10 paths. With 3 ups:
5 rights and 0 ups remain for a total of 50 = 1 path. Summing these, we have a total of
10 + 1 = 11 paths avoiding the square. (Try doing this with complementary counting!)
1.