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

Home > Numbers
Does it continue? 5: powers of 2 (Posted on 2017-09-24) Difficulty: 3 of 5
Before trying the problem "note your opinion as to whether the observed pattern is known to continue, known not to continue, or not known at all."

For integers greater than 1,
2n is never congruent to 1 (mod n)
2n is congruent to 2 (mod n) whenever n is prime, and sometimes when it isn't,
is 2n ever congruent to 3 (mod n)?

No Solution Yet Submitted by Jer    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer findings | Comment 2 of 6 |
I had no preconception of what might result.

Part 1:

   10   for N=2 to 50000
   30    R=modpow(2,N,N)
   40    if R=1 then print N,R
   50   next

finds no congruence to 1.

Part 2:

   10   for N=2 to 5000
   30    R=modpow(2,N,N)
   40    if R=2 and prmdiv(N)<>N then print N,
   45      if prmdiv(N)=N and N<>1 and R<>2 then print "*****";N;"******",
   50   next

finds the only exception, when n is prime and 2^n is not congruent to 2 mod n occurs when n=2. Indeed it found, as expected, composites with 2^n congruent to 2: 341, 561, 645, 1105, 1387, 1729, 1905, 2047, 2465, 2701, 2821, 3277, 4033, 4369, 4371, 4681; presumably such sporadics continue past 5000.

Part 3:

   10   for N=2 to 50000
   30    R=modpow(2,N,N)
   40    if R=3 then print N,
   50   next

finds no value congruent to 3 mod n.

After reading Daniel's post, this latter did not go far enough.

  Posted by Charlie on 2017-09-24 16:53:43
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 (9)
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