Difference between revisions of "2010 USAJMO Problems/Problem 1"
(→Solution Easy) |
Math Kirby (talk | contribs) m |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
A permutation of the set of positive integers <math>[n] = \{1, 2, \ldots, n\}</math> is a sequence <math>(a_1, a_2, \ldots, a_n)</math> such that each element of <math>[n]</math> appears precisely one time as a term of the sequence. For example, <math>(3, 5, 1, 2, 4)</math> is a permutation of <math>[5]</math>. Let <math>P(n)</math> be the number of permutations of <math>[n]</math> for which <math>ka_k</math> is a perfect square for all <math>1\leq k\leq n</math>. Find with proof the smallest <math>n</math> such that <math>P(n)</math> is a multiple of <math>2010</math>. | A permutation of the set of positive integers <math>[n] = \{1, 2, \ldots, n\}</math> is a sequence <math>(a_1, a_2, \ldots, a_n)</math> such that each element of <math>[n]</math> appears precisely one time as a term of the sequence. For example, <math>(3, 5, 1, 2, 4)</math> is a permutation of <math>[5]</math>. Let <math>P(n)</math> be the number of permutations of <math>[n]</math> for which <math>ka_k</math> is a perfect square for all <math>1\leq k\leq n</math>. Find with proof the smallest <math>n</math> such that <math>P(n)</math> is a multiple of <math>2010</math>. | ||
− | == | + | == Solution 1 == |
We claim that the smallest <math>n</math> is <math>67^2 = \boxed{4489}</math>. | We claim that the smallest <math>n</math> is <math>67^2 = \boxed{4489}</math>. | ||
− | |||
Let <math>S = \{1, 4, 9, \ldots\}</math> be the set of positive perfect squares. We claim that the relation <math>R = \{(j, k)\in [n]\times[n]\mid jk\in S\}</math> is an equivalence relation on <math>[n]</math>. | Let <math>S = \{1, 4, 9, \ldots\}</math> be the set of positive perfect squares. We claim that the relation <math>R = \{(j, k)\in [n]\times[n]\mid jk\in S\}</math> is an equivalence relation on <math>[n]</math>. | ||
* It is reflexive because <math>k^2\in S</math> for all <math>k\in [n]</math>. | * It is reflexive because <math>k^2\in S</math> for all <math>k\in [n]</math>. | ||
Line 19: | Line 18: | ||
Thus the equivalence class <math>C_m = \{g_mk^2\leq n\}</math>. With <math>g_m = 1</math>, we get the largest possible <math>n_m</math>. This is just the set of squares in <math>[n]</math>, of which we need at least <math>67</math>, so <math>n\geq 67^2</math>. This condition is necessary and sufficient. | Thus the equivalence class <math>C_m = \{g_mk^2\leq n\}</math>. With <math>g_m = 1</math>, we get the largest possible <math>n_m</math>. This is just the set of squares in <math>[n]</math>, of which we need at least <math>67</math>, so <math>n\geq 67^2</math>. This condition is necessary and sufficient. | ||
− | + | == Solution 2 == | |
− | + | Solution 1 can also be rephrased as follows, in a longer way, but with fewer highly technical words such as "equivalence relation": | |
It is possible to write all positive integers <math>n</math> in the form <math>p\cdot m^2</math>, where <math>m^2</math> is the largest perfect square dividing <math>n</math>, so <math>p</math> is not divisible by the square of any prime. Obviously, one working permutation of <math>[n]</math> is simply <math>(1, 2, \ldots, n)</math>; this is acceptable, as <math>ka_k</math> is always <math>k^2</math> in this sequence. | It is possible to write all positive integers <math>n</math> in the form <math>p\cdot m^2</math>, where <math>m^2</math> is the largest perfect square dividing <math>n</math>, so <math>p</math> is not divisible by the square of any prime. Obviously, one working permutation of <math>[n]</math> is simply <math>(1, 2, \ldots, n)</math>; this is acceptable, as <math>ka_k</math> is always <math>k^2</math> in this sequence. | ||
Line 37: | Line 36: | ||
We can permute <math>l</math> numbers with the same <math>p</math> in <math>l!</math> ways. We must have at least 67 numbers with a certain <math>p</math> so our product will be divisible by 67. Obviously, then it will also be divisible by 2, 3, and 5, and thus 2010, as well. Toms as <math>h</math>, in general, we need numbers all the way up to <math>h\cdot 67^2</math>, so obviously, <math>67^2</math> is the smallest such number such that we can get a <math>67!</math> term; here 67 <math>p</math> terms are 1. Thus we need the integers <math>1, 2, \ldots, 67^2</math>, so <math>67^2</math>, or <math>\boxed{4489}</math>, is the answer. | We can permute <math>l</math> numbers with the same <math>p</math> in <math>l!</math> ways. We must have at least 67 numbers with a certain <math>p</math> so our product will be divisible by 67. Obviously, then it will also be divisible by 2, 3, and 5, and thus 2010, as well. Toms as <math>h</math>, in general, we need numbers all the way up to <math>h\cdot 67^2</math>, so obviously, <math>67^2</math> is the smallest such number such that we can get a <math>67!</math> term; here 67 <math>p</math> terms are 1. Thus we need the integers <math>1, 2, \ldots, 67^2</math>, so <math>67^2</math>, or <math>\boxed{4489}</math>, is the answer. | ||
+ | |||
+ | == Solution 3 (Not a formal proof but understandable) == | ||
+ | We claim the smallest <math>n</math> is <math>67^2 = \boxed{4489}</math> | ||
+ | Looking at small cases we see that <math>P(n)</math> changes every time n increases to a perfect square. We find that we can not permute the non squares around because <math>n</math> (not a perfect square) <math>*a_w</math> where <math>w \neq n</math> will not give a perfect square. But we can permute the perfect squares around to other perfect squares since a square times a square makes another square we can do this (# of squares below <math>n</math>)! times. So now we need to find <math>n = a^2</math> such that <math>a!</math> is divisible by <math>2010</math> which largest prime factor is <math>67</math> so, <math>n</math> is <math>n</math> is <math>67^2 = \boxed{4489}</math> | ||
+ | ~bjump | ||
==Solution Number Sense== | ==Solution Number Sense== | ||
Line 59: | Line 63: | ||
-expiLnCalc | -expiLnCalc | ||
− | ==Solution | + | ==Solution 4== |
+ | |||
+ | It's well known that there exists <math>f(n)</math> and <math>g(n)</math> such that <math>n = f(n) \cdot g(n)</math>, no square divides <math>f(n)</math> other than 1, and <math>g(n)</math> is a perfect square. | ||
+ | |||
+ | Lemma: <math>k \cdot a_k</math> is a perfect square if and only if <math>f(k) = f(a_k)</math> | ||
+ | |||
+ | We prove first: If <math>f(k) = f(a_k)</math>, <math>k \cdot a_k</math> is a perfect square. | ||
+ | |||
+ | <math>k \cdot a_k = f(k) \cdot g(k) \cdot f(a_k) \cdot g(a_k) = f(k)^2 \cdot g(k) \cdot g(a_k)</math>, which is a perfect square. | ||
+ | |||
+ | We will now prove: If <math>k \cdot a_k</math> is a perfect square, <math>f(k) = f(a_k)</math>. | ||
+ | |||
+ | We do proof by contrapositive: If <math>f(k) \neq f(a_k)</math>, <math>k \cdot a_k</math> is not a perfect square. | ||
+ | |||
+ | <math>v_p(k)</math> is the p-adic valuation of k. (Basically how many factors of p you can take out of k) | ||
+ | |||
+ | Note that if <math>f(k) \neq f(a_k)</math>, By the Fundamental Theorem of Arithmetic, <math>f(k)</math> and <math>f(a_k)</math>'s prime factorization are different, and thus there exists a prime p, such that <math>v_p(f(k)) \neq v_p(f(a_k))</math>. Also, since <math>f(k)</math> and <math>f(a_k)</math> is squarefree, <math>v_p(k), v_p(a_k) \leq 1</math>. Thus, <math>v_p(k \cdot a_k) = 1</math>, making <math>k \cdot a_k</math> not a square. | ||
+ | |||
+ | End Lemma | ||
+ | |||
+ | Thus, we can only match k with <math>a_k</math> if they have the same f value. Thus, to find P(k), we can do it by f value, permuting the <math>a_k</math> with f value 1, then 2, ... Thus, our answer is: | ||
+ | |||
+ | <math>P(n) = \prod_{1 \leq i \leq n, g(i) = 1} \left\lfloor \sqrt{\frac{n}{i}} \right \rfloor !</math> | ||
+ | |||
+ | For all <math>n < 67^2</math>, <math>P(n)</math> doesn't have a factor of 67. However, if <math>n = 67^2</math>, the first term will be a multiple of 2010, and thus the answer is <math>67^2 = \boxed{4489}</math> | ||
− | + | -Alexlikemath | |
{{alternate solutions}} | {{alternate solutions}} | ||
+ | ==Solution 5(stupid but simple)== | ||
+ | The answer is 4489.(67 squared) | ||
+ | |||
+ | Proof | ||
+ | |||
+ | We start with trying to fulfill ways to do <math>P(n)</math>. When n is 1 there is one way to do it and fulfill <math>ka_k</math> as a perfect square. Same with the numbers 2 and 3. The order for both of these number are all in increasing order <cmath>1,2</cmath> <cmath>1,2,3</cmath> Now when it comes to 4 we could do <cmath>1,2,3,4</cmath> and <cmath>4,2,3,1</cmath> This means when n is a perfect square it increases where <math>k</math> and <math>a_k</math> are perfect squares. The prime factorization of 2010 is: <cmath>2010=2*5*3*67</cmath> Because we only care about 67, the biggest divisor we do 67 squared because <math>n</math> has to be a square.<cmath>67^2=4489</cmath> | ||
+ | |||
+ | -Multpi12 | ||
== See Also == | == See Also == |
Latest revision as of 14:28, 28 October 2024
Contents
Problem
A permutation of the set of positive integers is a sequence such that each element of appears precisely one time as a term of the sequence. For example, is a permutation of . Let be the number of permutations of for which is a perfect square for all . Find with proof the smallest such that is a multiple of .
Solution 1
We claim that the smallest is .
Let be the set of positive perfect squares. We claim that the relation is an equivalence relation on .
- It is reflexive because for all .
- It is symmetric because .
- It is transitive because if and , then , since is closed under multiplication and a non-square times a square is always a non-square.
We are restricted to permutations for which , in other words to permutations that send each element of into its equivalence class. Suppose there are equivalence classes: . Let be the number of elements of , then .
Now . In order that , we must have for the class with the most elements. This means , since no smaller factorial will have as a factor. This condition is sufficient, since will be divisible by for , and even more so .
The smallest element of the equivalence class is square-free, since if it were divisible by the square of a prime, the quotient would be a smaller element of . Also, each prime that divides divides all the other elements of , since and thus . Therefore for all . The primes that are not in occur an even number of times in each .
Thus the equivalence class . With , we get the largest possible . This is just the set of squares in , of which we need at least , so . This condition is necessary and sufficient.
Solution 2
Solution 1 can also be rephrased as follows, in a longer way, but with fewer highly technical words such as "equivalence relation":
It is possible to write all positive integers in the form , where is the largest perfect square dividing , so is not divisible by the square of any prime. Obviously, one working permutation of is simply ; this is acceptable, as is always in this sequence.
Lemma 1. We can permute any numbers that, when each divided by the largest perfect square that divides it, yield equal quantities .
Proof. Let and be the values of and , respectively, for a given as defined above, such that is not divisible by the square of any prime. We can obviously permute two numbers which have the same , since if where and are 2 values of , then , which is a perfect square. This proves that we can permute any numbers with the same value of .
End Lemma
Lemma 2. We will prove the converse of Lemma 1: Let one number have a value of and another, . and are both perfect squares.
Proof. and are both perfect squares, so for to be a perfect square, if is greater than or equal to , must be a perfect square, too. Thus is times a square, but cannot divide any squares besides , so ; . Similarly, if , then for our rules to keep working.
End Lemma
We can permute numbers with the same in ways. We must have at least 67 numbers with a certain so our product will be divisible by 67. Obviously, then it will also be divisible by 2, 3, and 5, and thus 2010, as well. Toms as , in general, we need numbers all the way up to , so obviously, is the smallest such number such that we can get a term; here 67 terms are 1. Thus we need the integers , so , or , is the answer.
Solution 3 (Not a formal proof but understandable)
We claim the smallest is Looking at small cases we see that changes every time n increases to a perfect square. We find that we can not permute the non squares around because (not a perfect square) where will not give a perfect square. But we can permute the perfect squares around to other perfect squares since a square times a square makes another square we can do this (# of squares below )! times. So now we need to find such that is divisible by which largest prime factor is so, is is ~bjump
Solution Number Sense
We have to somehow calculate the number of permutations for a given . How in the world do we do this? Because we want squares, why not call a number , where is the largest square that allows to be non-square? is the only square can be, which only happens if is a perfect square.
For example, , therefore in this case .
I will call a permutation of the numbers , while the original I will call .
Note that essentially we are looking at "pairing up" elements between and such that the product of and is a perfect square. How do we do this? Using the representation above.
Each square has to have an even exponent of every prime represented in its prime factorization. Therefore, we can just take all exponents of the primes and if there are any odd numbers, those are the ones we have to match- in effect, they are the numbers mentioned at the beginning.
By listing the values, in my search for "dumb" or "obvious" ideas I am pretty confident that only values with identical s can be matched together. With such a solid idea let me prove it.
If we were to "pair up" numbers with different s, take for example with an of and with an of , note that their product gives a supposed of because the values cancel out. But then, what happens to the extra left? It doesn't make a square, contradiction. To finish up this easy proof, note that if a "pair" has different values, and the smaller one is , in order for the product to leave a square, the larger value has to have not just but another square inside it, which is absurd because we stipulated at the beginning that was square-free except for the trivial multiplication identity, 1.
Now, how many ways are there to do this? If there are numbers with , there are clearly ways of sorting them. The same goes for by this logic. Note that the as stated by the problem requires a thrown in there because , so there has to be a with 67 elements with the same . It is evident that the smallest will occur when , because if is bigger we would have to expand to get the same number of values. Finally, realize that the only numbers with are square numbers! So our smallest , and we are done.
I relied on looking for patterns a lot in this problem. When faced with combo/number theory, it is always good to draw a sketch. Never be scared to try a problem on the USAJMO. It takes about 45 minutes. Well, it's 2010 and a number 1. Cheers!
-expiLnCalc
Solution 4
It's well known that there exists and such that , no square divides other than 1, and is a perfect square.
Lemma: is a perfect square if and only if
We prove first: If , is a perfect square.
, which is a perfect square.
We will now prove: If is a perfect square, .
We do proof by contrapositive: If , is not a perfect square.
is the p-adic valuation of k. (Basically how many factors of p you can take out of k)
Note that if , By the Fundamental Theorem of Arithmetic, and 's prime factorization are different, and thus there exists a prime p, such that . Also, since and is squarefree, . Thus, , making not a square.
End Lemma
Thus, we can only match k with if they have the same f value. Thus, to find P(k), we can do it by f value, permuting the with f value 1, then 2, ... Thus, our answer is:
For all , doesn't have a factor of 67. However, if , the first term will be a multiple of 2010, and thus the answer is
-Alexlikemath
Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.
Solution 5(stupid but simple)
The answer is 4489.(67 squared)
Proof
We start with trying to fulfill ways to do . When n is 1 there is one way to do it and fulfill as a perfect square. Same with the numbers 2 and 3. The order for both of these number are all in increasing order Now when it comes to 4 we could do and This means when n is a perfect square it increases where and are perfect squares. The prime factorization of 2010 is: Because we only care about 67, the biggest divisor we do 67 squared because has to be a square.
-Multpi12
See Also
- <url>viewtopic.php?t=347303 Discussion on AoPS/MathLinks</url>
2010 USAJMO (Problems • Resources) | ||
Preceded by First Question |
Followed by Problem 2 | |
1 • 2 • 3 • 4 • 5 • 6 | ||
All USAJMO Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.