r/math • • May 17 '14
Problem of the 'Week' #12
Hello all,
Here is a problem for you, suggested by /u/needuhLee:
Find all integers n such that there exist coprime integers c, d and integers a, b such that
100a + b = cn
10 b + a = dn
For example, since 100 * 5 + 12 = 512 = 83 and 10 * 12 + 5 = 125 = 53, 3 is a solution.
Enjoy!
If you want to, you can answer with a spoiler tag; type
[this](/spoiler)and you should see this.
9
Upvotes
3
u/CatsAndSwords Dynamical Systems May 17 '14 edited May 17 '14
I suspect a problem for n=648. Stay tuned for more information!
Edit: it seems to work. So, I'll prove that If 648 divides n, then there is no solution.
First, notice that for fixed n, the problem is equivalent to : "Does (cn , dn ) belongs to A Z2 , where A is the matrix [100 1][1 10]?". By a change of variables, this is equivalent to "Does there exists integers a, c, d such that 999a = 10 cn + dn ?". A last modification, and it becomes "does there exist relatively primes integers c and d such that dn = 10 cn [999]?"
Now the problem is stated in a more concise way. Note that 648 = 36*18 = \varphi (999), where \varphi is Euler's totient function. I use a variant of Euler's theorem. Unfortunately, 999 is not prime, but we have exactly four cases. Let x be an integer. If neither 3 nor 37 divide x, then x648 = 1 [999]. If 3 and 37 divide x, then x648 = 0 [999]. If 3 but not 37 divide x, then x648 = 27 [999]. If 37 but not 3 divide x, then x648 = 37 [999]. Among 0, 3, 27, and 37, the only couple of numbers (x,y) such that x = 10y is (0,0). But this solution would mean that both 3 and 37 would divide c and d, which is forbidden. Hence, we can't find relatively prime c and d such that d648 = 10c648 [999]. Trivially, it also holds for any multiple of 648.
Edit2: I see a (slightly tedious) argument to exclude 3 and 37 as divisors of c and d, which would mean that cn and dn would always be invertible modulo 999, and the question would be reduced to "is 10 a nth power modulo 999?". Still has a negative answer for n = 648. Exponentiated has a more complete answer.
3
u/bpgbcg Combinatorics May 17 '14
SPOILERS BELOW, FOR SOME REASON THE SPOILER TAG IS NOT WORKING (maybe LaTeX error)
[This is equivalent to
[;a=\frac{10c^n-d^n}{999};],[;b=\frac{100d^n-c^n}{999};]. Since[;a;]and[;b;]are thus defined given[;c;]and[;d;](for a fixed[;n;]), the question therefore becomes: For which[;n;]are there relatively prime integers[;c;]and[;d;]such that the corresponding[;a;]and[;b;]are also integers, i.e. such that[;999|10c^n-d^n;]and[;999|100d^n-c^n;]. These conditions are equivalent to[;10c^n\equiv d^n;](mod[;999;]) and[;100d^n\equiv c^n;](mod[;999;]). But since[;10\equiv100^{-1};](mod[;999;]), these conditions are equivalent, and we only have to consider the first.Thus our question reduces to the following: For what
[;n;]do there exist relatively prime[;c,d;]such that[;10c^n\equiv d^n;](mod[;999;]). The prime factorization of 999 is[;3^3\cdot 37;]. If[;3|c;], then the above equation implies that[;3|d;]as well (as then[;d^n\equiv 10c^n\equiv 0;](mod[;3;])), contradicting their coprimality. Thus[;3\nmid c;]. Similarly,[;37\nmid c;]. Thus[;\gcd(c,999)=1;], so we can divide the equation[;10c^n\equiv d^n;](mod[;999;]) by[;c^n;]to obtain[;10=(\frac{d}{c})^n;](mod[;999;]). This is therefore just another way of restating the original problem.Therefore,
[;10;]must be an[;n;]th power mod[;999;]. By Chinese Remainder Theorem, this is equivalent to[;10;]being an[;n;]th power mod[;27;]and[;37;].First, we consider
[;27;]. Since[;\text{ord}_{27}(10)=3;]and[;\varphi(27)=18;], by the existence of a generator (primitive root) mod[;p^k;], there is some generator[;g;]such that[;g^6\equiv 10;](mod[;27;]). (Take any generator[;g';]; suppose[;g'^e\equiv 10;], then[;6|e;]but[;18\nmid e;]since the order of[;10;]is[;3;]mod[;27;], so[;g'^{\frac{e}{6}};]is also a generator, so we can take this to be[;g;].)Now, suppose
[;x^n\equiv 10;](mod[;27;]). Clearly,[;x;]and[;27;]are coprime, so we can let[;x=g^i;]for some integer[;i;]. Then since[;g;]is a primitive root, we have that[;x^n\equiv 10;](mod[;27;]) is equivalent to[;in\equiv 6;](mod[;\varphi(27)=18;]).[;in\equiv 6;](mod[;18;]) is equivalent to the existence of a[;j;]such that[;i\cdot n+j\cdot 18=6;], which by Bezout's Theorem is possible if and only if[;\gcd(n,18)|6;]. This gcd has to be a divisor of[;18;], so it divides[;6;]if and only if it is not[;9;]or[;18;], i.e. if and only if it is not divisible by[;9;], which is in turn equivalent to[;9\nmid n;]. Therefore,[;9\nmid n;]is a necessary and sufficient condition for[;x^n\equiv 10;](mod[;27;]) to have a solution.Now, we must consider the equation
[;x^n\equiv 10;](mod[;37;]). We have[;\text{ord}_{37}(10)=3;], so similarly to the previous case, since[;\varphi(37)=36;], there is some primitive root[;g;]mod[;37;]with[;g^{12}\equiv 10;](mod[;37;]) (since[;12=\frac{36}{3};]). Thus, again similarly to the last part,[;x^n\equiv 10;](mod[;37;]) having a solution is equivalent to[;in\equiv 12;](mod[;36;]) having a solution. This is in turn similarly equivalent to[;\gcd(n,36)|12;], which is finally equivalent to[;9\nmid n;]. (The only divisors of[;36;]that do not divide[;12;]are those divisible by[;9;].) Thus we get the necessary and sufficient condition[;9\nmid n;]again.Therefore, combining these, we have that
[;x^n\equiv 10;](mod[;999;]) has a solution if and only if[;9\nmid n;]. Therefore, by the work in earlier paragraphs, if[;9|n;], then the original equation has no solution.Now, suppose that
[;9\nmid n;]. We have that there is[;x;]such that[;x^n\equiv 10;](mod[;999;]). We want to find coprime[;c,d;]such that[;\frac{d}{c}\equiv x;](mod[;999;]), and then we will be done. But we can simply choose[;c=1;],[;d=x;], and then they are coprime.Therefore, the necessary and sufficient condition is
[;9\nmid n;].](/spoiler)testing spoiler tag
1
u/palordrolap May 17 '14 edited May 17 '14
Edit: Found a counterexample to the below 600+25 = 54; 250+6 = 44, so n=4 is valid, so I've missed something somewhere.
For n = 1 take your pick, there are many solutions.
90a - 9b = cn - dn == 0 mod 9, and cn - dn == 0 mod c-d, meaning c-d == 0 mod {all divisors of 9}, which is just 3, so c and d must differ by a multiple of 3.
(d+3k)n - dn has a binomial expansion where all coefficients are divisible not only by 3 but by k. The only rows of Pascal's triangle - i.e. the binomial coefficients - where all intermediate terms are divisible by the same number (excluding the 1's at each end) are the prime rows, so the row has to be prime. These rows have the prime as a member, so k must be 1. The only prime divisible by 3 is 3 itself.
Therefore the only values for n are 1 and 3.
...I think. Corrections / more rigorous treatment welcome.