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

Home > Just Math
2^n mod n (Posted on 2022-05-13) Difficulty: 3 of 5
21 mod 1=2 mod 1=0
22 mod 2=4 mod 2=0
23 mod 3=8 mod 3=2
24 mod 4=16 mod 4=0
25 mod 5=32 mod 5=2
26 mod 6=64 mod 6=4
27 mod 7=128 mod 7=2
28 mod 8=256 mod 8=0
29 mod 9=512 mod 9=8
210 mod 10=1024 mod 10=4

Therefore, the sequence 2n mod n starts 0, 0, 2, 0, 2, 4, 2, 0, 8, 4, ... Notice that all of the terms so far are either 0 or a power of 2.

1. What is the smallest positive integer n such that 2n mod n is neither 0 nor a power of 2?
2. What is the smallest positive integer n such that 2n mod n is odd?
3. Is there a positive integer n such that 2n mod n=1?
4. Which positive integer from 2 to 10 is the last to appear as 2n mod n for the first time?

No Solution Yet Submitted by Math Man    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts Parts 1, 2, and 4 (and probably 3) | Comment 1 of 3
call f(n) = 2^n mod n

1. 18.  f(18) is 10  not zero or a power of 2
2. 25.  f(25) is 7 the first odd number
3. I speculate that there is no such n where f(n) is 1.
   There is probably a number theory proof, but I haven't come up with it.
4. 3.  Refer to OEIS A050259 which says that f(4700063497) = 3

f(n) n
1   ??? suspect none
2   3
3   4700063497
4   6
5   19147
6   10669
7   25
8   9
9   2228071 refer to OEIS A051447

In my computer evaluation (testing up to n = 280000 or so) I could not find solutions for 1, 3, or 9

  Posted by Larry on 2022-05-13 08:29:42
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 (10)
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