Find the number of positive integers n > 1 such that n divides 2 n − 1 .
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.
Fermat's little theorem is true only when p is a prime.
Great fix! The motivation behind this approach is that the prime case is almost obvious (and was the first thing that Jesse wrote), but trying to extend to the composite odd case was harder. If so, looking at the smallest prime or the largest prime often leads to a contradiction.
Since for any integer n ≥ 2 , the number 2 n − 1 is always an odd integer, it can't be divisible by an even integer. Thus, such an n , if exists at all, must be odd. Now, we have by Fermat's little theorem, for any odd integer n 2 ϕ ( n ) = 1 m o d ( n ) This implies (via division theorem), that such an integer n must be divisible by ϕ ( n ) . But we know that, ϕ ( n ) = n p ∏ ( 1 − p 1 ) = n p ∏ p p − 1 , where the product is over all prime factors of n . Hence we require the following to be an integer ϕ ( n ) n = p ∏ p − 1 p But remember that p 's are distinct primes, so can't be divisible by numbers of the form p − 1 , unless p − 1 = 1 , i.e., p = 2 , but then n would be even, which is not the case. ■
@Daksh A Agarwal Ah, what happened is that I deleted your solution because it was linking to a pdf. We only allow people to add 1 solution, which is why you didn't get the "add your solution here" box.
I've undeleted the solution. Can you edit it?
Log in to reply
Yes. Is it fine if it links to a pdf, or should i post it separately? Thanks
Log in to reply
Ideally, paste the Latex over, so that it's easily accessible for everyone. E.g. for those who are using the app on their phone, they are less inclined (or also might not be able) to click and download a pdf
Problem Loading...
Note Loading...
Set Loading...
Let's solve this problem by dividing it into cases.
Case 1: n is even .
If n is even then 2 n − 1 must also be even since an even number cannot divide an odd number, but it is not possible for 2 n − 1 to be even when n > 1 is a positive integer.
Hence, n cannot be even .
Case 2: n is odd .
Let's define p to be the smallest prime factor of n and clearly p ∣ 2 n − 1 ⇒ 2 n ≡ 1 ( m o d p ) .
Now let k be the multiplicative order of 2 modulo p .
Clearly k ∣ n , but now by Fermat's Little Theorem k ≤ p − 1 .
This implies that n has a factor k which is positive and smaller than p which means that k = 1 .
Now 2 ≡ 1 ( m o d p ) which clearly is impossible for any prime p .
Hence, n cannot be odd .
Since n can be neither even nor odd , the answer must be 0