On 2^n – 1
Picking up from my last blog post, where we observed 255 = 15 x 17,
If , where
This is incredibly cool!
So,
= 15 = 5 x 3
= 255 = 17 x 5 x 3
= 65535 = 257 x 17 x 5 x 3
= 4294967295 = 65537 x 257 x 17 x 5 x 3
It is fascinating to see the above results in binary:
11
101 x
------
1111 =
11
101 x
10001 x
--------
11111111 =
11
101 x
10001 x
100000001 x
-----------
16 1's =
Primes of the form are called Mersenne primes. Primes of the form are called Fermat primes. The numbers 3, 5, 17, 257 and 65537 are the only known Fermat primes!
That concludes my random rant. Have fun with !