![]() |
![]() |
#1 |
Feb 2020
1 Posts |
![]()
I've probably only found something that already existed, but am posting here to find out.
Let ((2^n)-2)/n = x for any positive integer n, if x is a whole number, n is prime. if x is not a whole number, n is not prime. Is this something basic that's been found before? If so can someone let me know what this is called or why it works if there's a basic reason I'm missing? |
![]() |
![]() |
![]() |
#2 |
Dec 2012
The Netherlands
181110 Posts |
![]()
It's Fermat's little theorem.
x can be whole without n being prime however - for example, try n=341. Then look up Carmichael numbers. |
![]() |
![]() |
![]() |
#3 |
Aug 2006
5,987 Posts |
![]()
What a fantastic re-discovery! As Nick said, this is Fermat's "little" theorem in base 2, a wonderful result that is very commonly used. Its counterexamples are the base-2 pseudoprimes. You've found a new world to explore.
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is the Integral of this Function? | Toro | Analysis & Analytic Number Theory | 0 | 2018-08-25 04:53 |
A useful function. | JM Montolio A | Miscellaneous Math | 28 | 2018-03-08 14:29 |
phi function | rula | Homework Help | 3 | 2017-01-18 01:41 |
ARM reveals Cortex A72 details | VictordeHolland | Hardware | 0 | 2015-04-24 14:49 |
Wikileaks reveals video Pentagon tried to cover up | garo | Soap Box | 28 | 2010-04-09 13:19 |