Difference between revisions of "2022 AMC 12A Problems/Problem 24"
(→Solution) |
(Solution using parking functions) |
||
Line 90: | Line 90: | ||
~Tau | ~Tau | ||
− | == | + | == Solution using parking functions == |
− | + | For some <math>n</math>, let there be <math>n+1</math> parking spaces counterclockwise in a circle. Consider a string of <math>n</math> integers <math>c_1c_2 \cdots c_n</math> each between <math>0</math> and <math>n</math>, and let <math>n</math> cars come into this circle so that the <math>i</math>th car tries to park at spot <math>c_i</math>, but if it is already taken then it instead keeps going counterclockwise and takes the next avaliable spot. After this process, exactly one spot will remain empty. | |
− | + | Then the strings of <math>n</math> numbers between <math>0</math> and <math>n-1</math> that contain at least <math>k</math> integers <math><k</math> for <math>1 \leq k \leq n+1</math> are exactly the set of strings that leave spot <math>n</math> empty. Also note for any string <math>c_1c_2 \cdots c_n</math>, we can add <math>1</math> to each <math>c_i</math> (mod <math>n+1</math>) to ``shift'' the empty spot counterclockwise, meaning for each string there exists exactly one <math>j</math> with <math>0 \leq j \leq n</math> so that <math>(c_1+j)(c_2+j) \cdots (c_n+j)</math> leaves spot <math>n</math> empty. This gives there are <math>\frac{(n+1)^{n}}{n+1} = (n+1)^{n-1}</math> such strings. | |
+ | |||
+ | Plugging in <math>n = 5</math> gives \boxed{1296} such strings. | ||
==Video Solution== | ==Video Solution== |
Revision as of 04:31, 15 November 2022
Contents
[hide]Problem
How many strings of length formed from the digits , , , , are there such that for each , at least of the digits are less than ? (For example, satisfies this condition because it contains at least digit less than , at least digits less than , at least digits less than , and at least digits less than . The string does not satisfy the condition because it does not contain at least digits less than .)
Solution (Recursive equations approach)
Denote by the number of -digit strings formed by using numbers , where for each , at least of the digits are less than .
We have the following recursive equation: and the boundary condition for any .
By solving this recursive equation, for and , we get
For and , we get
For and , we get
For and , we get
~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)
Solution 2 (Cheese)
Let the set of all valid sequences be . Notice that for any sequence in , the sequences must also belong in . However, one must consider the edge case all 5 elements are the same (only ), in which case all sequences listed are equivalent. Then , which yields by inspection.
~Tau
Solution using parking functions
For some , let there be parking spaces counterclockwise in a circle. Consider a string of integers each between and , and let cars come into this circle so that the th car tries to park at spot , but if it is already taken then it instead keeps going counterclockwise and takes the next avaliable spot. After this process, exactly one spot will remain empty.
Then the strings of numbers between and that contain at least integers for are exactly the set of strings that leave spot empty. Also note for any string , we can add to each (mod ) to ``shift the empty spot counterclockwise, meaning for each string there exists exactly one with so that leaves spot empty. This gives there are such strings.
Plugging in gives \boxed{1296} such strings.
Video Solution
~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)
Video Solution By OmegaLearn using Complementary Counting
~ pi_is_3.14
See Also
2022 AMC 10A (Problems • Answer Key • Resources) | ||
Preceded by Problem 23 |
Followed by Problem 25 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AMC 10 Problems and Solutions |
2022 AMC 12A (Problems • Answer Key • Resources) | |
Preceded by Problem 23 |
Followed by Problem 25 |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
All AMC 12 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.