All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Division (Posted on 2004-12-11) Difficulty: 3 of 5
For which positive integer values of N is 2^N-1 a multiple of N?

See The Solution Submitted by e.g.    
Rating: 3.8333 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution explanation to puzzle answer Comment 17 of 17 |
(In reply to answer by K Sengupta)

Obviously, (2-1)=1 | 1. Accordingly, the puzzle is trivially satisfied for N=1

Now, we consider:  N>=2
Assume that n  | 2^n -1. Since n>=2, we consider the smallest prime factor of n. Let us denote it by p.
Since, 2^n-1 is odd, it follows that n is odd . So, p>=3
Since p is the smallest prime factor of n, it follows that:
gcd(n, p-1)=1
Accordingly  by a standard corollary to Euclid's algorithm,  there exist integers x and y such that:
nx + (p-1)*y =1
Therefore:
2 = 2^1 = 2^{nx+(p-1)y} = 2^(nx) * 2^{(p-1)*y} = (2^n)^x *{ 2^(p-1)}^y
Reducing the above equation in mod p system, we have:
2^n == 1 (mod 2^(n-1)), and so:
2^n == 1(mod n) and 2^n==1(mod p)
Also, by Fermat's Little Theorem, since gcd(2,p)=1, we must have:
2^(p-1) ==1 (mod p)
Putting these results together, we obtain:
2== 1^x * 1^y == 1 (mod p), giving p=1 (mod p) which is a contradiction. 
This holds true even if one of x and y is negative.
Accordingly,  our original supposition that there is a p which is the smallest prime factor of n, which divides 2^(n-1) is false.
Consequently,  the only possible positive integer value that satisfy the given relationship is n=1

*** If n were a nonnegative integer, then n=0, would have been another valid value satisfying the conditions of the problem.

Edited on August 1, 2022, 11:15 pm

Edited on March 16, 2024, 12:43 am
  Posted by K Sengupta on 2022-08-01 23:05:03

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information