You get 8128!!! It is PERFECT!!
1, 2, 4, 8, 16, 32, 64, 127, 254, 508, 1016, 2032, 4064, 8128
8128 They're known as perfect numbers.
8128,14064,22032,41016,8508,16254,32127,64
abundant since sum of divisors is 16256
8128 4064,2 2032,2,2 1016,2,2,2 508,2,2,2,2 254,2,2,2,2,2 127,2,2,2,2,2,2
It is 33550336
The fourth perfect number is 8128.
8128 / 2 = 2^6 x 127 8128 / 1 = 8128 8128 / 2 = 4064 8128 / 4 = 2032 8128 / 8 = 1016 8128 / 16 = 508 8128 / 32 = 254 8128 / 64 = 127 1 + 2 + 4 + 8 + 16 + 32 + 64 + 127 + 254 + 508 + 1016 + 2032 + 4064 + 8128 = 16252
There is a formula to calculate even perfect numbers, 2p-1(2p - 1) where p is a prime number. When p = 7 then 26(27 - 1) = 64 x 127 = 8128 So 8128 is the 4th perfect number. (The other three occur when p = 2, 3 and 5)
496 is the third perfect number and 8128 is the fourth perfect number.
Perfect numbers have nothing to do with programming languages. Some of them are: 6, 28, 496, 8128, 33550336.