Let f : Z + ⟶ Z ∗ the function that assigns to each positive integer n the number of rational numbers q p such that ⎩ ⎨ ⎧ p + q = n 0 < q p < 1 g cd ( p , q ) = 1 . For example, when n = 8 , we have 2 such rational numbers: 7 1 and 5 3 . Hence f ( 8 ) = 2 .
What is the first positive integer m such that there is no solution to f ( n ) = m ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
[ This comment has been converted into a solution ]
The formula f ( n ) = 2 1 ϕ ( n ) is true for n ≥ 3 , but it fails for n = 1 , 2 .
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 |
|
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
1 2 |
|
@Michael Fitzgerald , we really liked your comment, and have converted it into a solution. If you subscribe to this solution, you will receive notifications about future comments.
From n > 1 , f ( n ) can be understood as the number of ordered partitions of n between two coprime integers ( 8 = 1 + 7 = 3 + 5 ) also known as the half- totient 2 Φ ( n ) .
We can verify that f ( 3 ) = 1 , f ( 5 ) = 2 , f ( 7 ) = 3 , f ( 1 5 ) = 4 , f ( 1 1 ) = 5 , f ( 1 3 ) = 6 .
However, there is no integer n that can be split into 1 4 partitions ( 7 ordered partitions) between two coprimes integers.
@Romain Bouchard Could you explain why there is no integer n such that ϕ ( n ) = 1 4 ?
Log in to reply
Sure. Suppose there is an integer n such that ϕ ( n ) = 1 4 :
If the prime number p is a divisor of n , then p − 1 ∣ ϕ ( n ) by definition of ϕ ⇒ p − 1 ∣ 1 4 .
Since the divisors of 1 4 are 1 , 2 , 7 and 1 4 , then p = 2 or p = 3 .
Thus, n = 2 a 3 b and ϕ ( n ) = 2 j 3 k .
However, 7 can never be a factor of 2 j 3 k , hence there is no integer n such that ϕ ( n ) = 1 4 .
Log in to reply
These numbers are known as non-totients. The sequence of such
2
n
is given in
OEIS 5277
.
There isn't a complete classification of these numbers as yet.
A more concise Python implementation:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Will display:
1 |
|
I got it!!! Its the Carmhichael's function 2 1 ϕ ( n ) . since ϕ ( n ) cannot be 14; so the former cannot be 7
Simple python code for finding m's for integers from 1 to 100, just check for first missing integer in list
1 2 3 4 5 6 7 8 9 10 11 |
|
Problem Loading...
Note Loading...
Set Loading...
Claim 1 : m = f ( n ) = 2 1 ϕ ( n ) , where ϕ is the Euler totient function.
Proof: By definition, ϕ ( n ) is the number of values 1 ≤ x < n that are coprime to n .
Let 1 ≤ p < 2 1 n be coprime to n , and q = n − p . Then p / q satisfies the given condition. (As for the third condition: if g cd ( p , q ) = g then g must be a divisor of n as well as p . However, n and p are coprime. Therefore g = 1 .)
Conversely, suppose p , q satisfy the given conditions. Let g = g cd ( p , n ) . Then g also divides q = n − p . But p and q are coprime; therefore g = 1 . The same reasoning shows that q is coprime to n .
Thus the numerators and denominators of these p / q are precisely the set of values between 1 ≤ x < n that are coprime to n ; and therefore there are 2 1 ϕ ( n ) such fractions.
Claim 2 : The smallest m that cannot be written in this form is m = 7 .
We have 2 = ϕ ( 3 ) ; 4 = ϕ ( 5 ) ; 6 = ϕ ( 7 ) ; 8 = ϕ ( 1 6 ) ; 1 0 = ϕ ( 1 1 ) ; 1 2 = ϕ ( 1 3 ) , so that m = 1 , … , 6 are accounted for.
If ϕ ( n ) = 2 ⋅ 7 = 1 4 , it must be a product of factors of the form p e − 1 ( p − 1 ) , where p is a prime number. This requires one of the following:
p = 7 ; but this generates a factor equal to at least 7 1 ⋅ 6 = 4 2 .
p − 1 = 7 ; but 8 is not a prime number.
p = 1 4 ; but this is not a prime number.
p − 1 = 1 4 ; but 15 is not a prime number.
Therefore the equation ϕ ( n ) = 1 4 has no solution, and m = 7 cannot be generated.