Difference between revisions of "2006 iTest Problems/Problem 34"
Duck master (talk | contribs) m (fixed links) |
Pinotation (talk | contribs) (→Solution) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
For each positive integer <math>n</math> let <math>S_n</math> denote the set of positive integers <math>k</math> such that <math>n^k-1</math> is divisible by <math>2006</math>. Define the function <math>P(n)</math> by the rule <cmath>P(n):=\begin{cases}\min(s)_{s\in S_n}&\text{if }S_n\neq\emptyset,\\0&\text{otherwise}.\end{cases}</cmath> Let <math>d</math> be the least upper bound of <math>\{P(1),P(2),P(3),\ldots\}</math> and let <math>m</math> be the number of integers <math>i</math> such that <math>1\leq i\leq 2006</math> and <math>P(i) = d</math>. Compute the value of <math>d+m</math>. | For each positive integer <math>n</math> let <math>S_n</math> denote the set of positive integers <math>k</math> such that <math>n^k-1</math> is divisible by <math>2006</math>. Define the function <math>P(n)</math> by the rule <cmath>P(n):=\begin{cases}\min(s)_{s\in S_n}&\text{if }S_n\neq\emptyset,\\0&\text{otherwise}.\end{cases}</cmath> Let <math>d</math> be the least upper bound of <math>\{P(1),P(2),P(3),\ldots\}</math> and let <math>m</math> be the number of integers <math>i</math> such that <math>1\leq i\leq 2006</math> and <math>P(i) = d</math>. Compute the value of <math>d+m</math>. | ||
− | == Solution == | + | == Solution 1 == |
We find that the [[prime factorization]] of <math>2006</math> is <math>2*17*59</math>. | We find that the [[prime factorization]] of <math>2006</math> is <math>2*17*59</math>. | ||
Line 8: | Line 8: | ||
As for solving <math>P(i) = d</math>, we must have <math>i</math> odd (otherwise it would not be coprime to <math>2</math>), and we must also have <math>i</math> be a primitive root modulo <math>17</math> as well as a primitive root modulo <math>59</math>. There are <math>\phi(\phi(17)) = \phi(16) = 8</math> primitive roots modulo <math>17</math> (where <math>\phi</math> is the [[Totient function|Euler totient function]]) and <math>\phi(\phi(59)) = \phi(58) = (2-1)*(29-1) = 28</math> primitive roots modulo <math>59</math>. Then we have <math>m = 1 * 8 * 28 = 224</math> by the [[Chinese Remainder Theorem]], so our answer is <math>d + m = 464 + 224 = 688</math> and we are done. | As for solving <math>P(i) = d</math>, we must have <math>i</math> odd (otherwise it would not be coprime to <math>2</math>), and we must also have <math>i</math> be a primitive root modulo <math>17</math> as well as a primitive root modulo <math>59</math>. There are <math>\phi(\phi(17)) = \phi(16) = 8</math> primitive roots modulo <math>17</math> (where <math>\phi</math> is the [[Totient function|Euler totient function]]) and <math>\phi(\phi(59)) = \phi(58) = (2-1)*(29-1) = 28</math> primitive roots modulo <math>59</math>. Then we have <math>m = 1 * 8 * 28 = 224</math> by the [[Chinese Remainder Theorem]], so our answer is <math>d + m = 464 + 224 = 688</math> and we are done. | ||
+ | |||
+ | == Solution 2 (No Carmichael function)== | ||
+ | First note | ||
+ | <cmath> | ||
+ | 2006 = 2 \cdot 17 \cdot 59 | ||
+ | </cmath> | ||
+ | If \( \gcd(n, 2006) \neq 1 \) then for some prime divisor \( p \) of 2006 we have \( n^k \equiv 0 \pmod{p} \) for all \( k \), so \( n^{k-1} \not\equiv 0 \pmod{p} \); hence \( S_n \) is empty unless \( \gcd(n, 2006) = 1 \). | ||
+ | For \( \gcd(n, 2006) = 1 \) write | ||
+ | <cmath> | ||
+ | a = \text{ord}_{17}(n), \quad b = \text{ord}_{59}(n). | ||
+ | </cmath> | ||
+ | By the Chinese Remainder Theorem the minimal \( k \) with \( n^k \equiv 1 \pmod{2006} \) is \( P(n) = \text{lcm}(a, b) \). Fermat gives \( a \mid 16 \) and \( b \mid 58 \), so every \( P(n) \) divides \( \text{lcm}(16, 58) = 464 \); thus the least upper bound \( d \leq 464 \). | ||
+ | |||
+ | We can attain \( a = 16 \) and \( b = 58 \) because the multiplicative groups modulo the primes 17 and 59 are cyclic of orders 16 and 58: there exist residues of full order modulo 17 and modulo 59, and by CRT these choices lift to residues modulo 2006. Hence \( d = 464 \). | ||
+ | |||
+ | To count how many \( i \) with \( 1 \leq i \leq 2006 \) satisfy \( P(i) = 464 \), count pairs of residues \( (r_{17}, r_{59}) \) where \( \text{ord}_{17}(r_{17}) = 16 \) and \( \text{ord}_{59}(r_{59}) = 58 \). For a cyclic group of order \( t \) the number of elements of order \( t \) is \( \phi(t) \). Thus there are \( \phi(16) = 8 \) choices mod 17 and \( \phi(58) = \phi(2) \phi(29) = 1 \cdot 28 = 28 \) choices mod 59. The condition mod 2 is just that \( i \) is odd (automatically true for any residue coprime to 2006), and CRT makes the choices independent, so | ||
+ | <cmath> | ||
+ | m = 8 \cdot 28 = 224. | ||
+ | </cmath> | ||
+ | Therefore \( d + m = 464 + 224 = 688 \). | ||
+ | |||
+ | <math>\boxed{688}</math> | ||
+ | |||
+ | ~Pinotation | ||
== See also == | == See also == | ||
Line 13: | Line 37: | ||
{{iTest box|year=2006|num-b=33|num-a=35|ver=[[2006 iTest Problems/Problem U1|U1]] '''•''' [[2006 iTest Problems/Problem U2|U2]] '''•''' [[2006 iTest Problems/Problem U3|U3]] '''•''' [[2006 iTest Problems/Problem U4|U4]] '''•''' [[2006 iTest Problems/Problem U5|U5]] '''•''' [[2006 iTest Problems/Problem U6|U6]] '''•''' [[2006 iTest Problems/Problem U7|U7]] '''•''' [[2006 iTest Problems/Problem U8|U8]] '''•''' [[2006 iTest Problems/Problem U9|U9]] '''•''' [[2006 iTest Problems/Problem U10|U10]]}} | {{iTest box|year=2006|num-b=33|num-a=35|ver=[[2006 iTest Problems/Problem U1|U1]] '''•''' [[2006 iTest Problems/Problem U2|U2]] '''•''' [[2006 iTest Problems/Problem U3|U3]] '''•''' [[2006 iTest Problems/Problem U4|U4]] '''•''' [[2006 iTest Problems/Problem U5|U5]] '''•''' [[2006 iTest Problems/Problem U6|U6]] '''•''' [[2006 iTest Problems/Problem U7|U7]] '''•''' [[2006 iTest Problems/Problem U8|U8]] '''•''' [[2006 iTest Problems/Problem U9|U9]] '''•''' [[2006 iTest Problems/Problem U10|U10]]}} | ||
− | + | [[Category:Number Theory Problems]] |
Latest revision as of 00:00, 18 August 2025
For each positive integer let
denote the set of positive integers
such that
is divisible by
. Define the function
by the rule
Let
be the least upper bound of
and let
be the number of integers
such that
and
. Compute the value of
.
Solution 1
We find that the prime factorization of is
.
Then we can compute (where
is the Carmichael function) by Carmichael's theorem: it is
.
As for solving , we must have
odd (otherwise it would not be coprime to
), and we must also have
be a primitive root modulo
as well as a primitive root modulo
. There are
primitive roots modulo
(where
is the Euler totient function) and
primitive roots modulo
. Then we have
by the Chinese Remainder Theorem, so our answer is
and we are done.
Solution 2 (No Carmichael function)
First note
If \( \gcd(n, 2006) \neq 1 \) then for some prime divisor \( p \) of 2006 we have \( n^k \equiv 0 \pmod{p} \) for all \( k \), so \( n^{k-1} \not\equiv 0 \pmod{p} \); hence \( S_n \) is empty unless \( \gcd(n, 2006) = 1 \).
For \( \gcd(n, 2006) = 1 \) write
By the Chinese Remainder Theorem the minimal \( k \) with \( n^k \equiv 1 \pmod{2006} \) is \( P(n) = \text{lcm}(a, b) \). Fermat gives \( a \mid 16 \) and \( b \mid 58 \), so every \( P(n) \) divides \( \text{lcm}(16, 58) = 464 \); thus the least upper bound \( d \leq 464 \).
We can attain \( a = 16 \) and \( b = 58 \) because the multiplicative groups modulo the primes 17 and 59 are cyclic of orders 16 and 58: there exist residues of full order modulo 17 and modulo 59, and by CRT these choices lift to residues modulo 2006. Hence \( d = 464 \).
To count how many \( i \) with \( 1 \leq i \leq 2006 \) satisfy \( P(i) = 464 \), count pairs of residues \( (r_{17}, r_{59}) \) where \( \text{ord}_{17}(r_{17}) = 16 \) and \( \text{ord}_{59}(r_{59}) = 58 \). For a cyclic group of order \( t \) the number of elements of order \( t \) is \( \phi(t) \). Thus there are \( \phi(16) = 8 \) choices mod 17 and \( \phi(58) = \phi(2) \phi(29) = 1 \cdot 28 = 28 \) choices mod 59. The condition mod 2 is just that \( i \) is odd (automatically true for any residue coprime to 2006), and CRT makes the choices independent, so
Therefore \( d + m = 464 + 224 = 688 \).
~Pinotation
See also
2006 iTest (Problems, Answer Key) | ||
Preceded by: Problem 33 |
Followed by: Problem 35 | |
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 • 26 • 27 • 28 • 29 • 30 • 31 • 32 • 33 • 34 • 35 • 36 • 37 • 38 • 39 • 40 • U1 • U2 • U3 • U4 • U5 • U6 • U7 • U8 • U9 • U10 |