Pernicious number
In number theory, a pernicious number is a positive integer such that the Hamming weight of its binary representation is prime, that is, there is a prime number of 1s when it is written as a binary number.[1]
Examples
The first pernicious number is 3, since 3 = 112 and 1 + 1 = 2, which is a prime. The next pernicious number is 5, since 5 = 1012, followed by 6 (1102), 7 (1112) and 9 (10012).[2] The sequence of pernicious numbers begins
Properties
No power of two is a pernicious number. This is trivially true, because powers of two in binary form are represented as a one followed by zeros. So each power of two has a Hamming weight of one, and one is not considered to be a prime.[2] On the other hand, every number of the form [math]\displaystyle{ 2^n+1 }[/math] with [math]\displaystyle{ n\gt 1 }[/math], including every Fermat number, is a pernicious number. This is because the sum of the digits in binary form is 2, which is a prime number.[2]
A Mersenne number [math]\displaystyle{ 2^n-1 }[/math] has a binary representation consisting of [math]\displaystyle{ n }[/math] ones, and is pernicious when [math]\displaystyle{ n }[/math] is prime. Every Mersenne prime is a Mersenne number for prime [math]\displaystyle{ n }[/math], and is therefore pernicious. By the Euclid–Euler theorem, the even perfect numbers take the form [math]\displaystyle{ 2^{n-1}(2^n-1) }[/math] for a Mersenne prime [math]\displaystyle{ 2^n-1 }[/math]; the binary representation of such a number consists of a prime number [math]\displaystyle{ n }[/math] of ones, followed by [math]\displaystyle{ n-1 }[/math] zeros. Therefore, every even perfect number is pernicious.[3][4]
Related numbers
- Odious numbers are numbers with an odd number of 1s in their binary expansion (OEIS: A000069).
- Evil numbers are numbers with an even number of 1s in their binary expansion (OEIS: A001969).
References
- ↑ Deza, Elena (2021), Mersenne Numbers And Fermat Numbers, World Scientific, p. 263, ISBN 978-9811230332
- ↑ 2.0 2.1 2.2 Sloane, N. J. A., ed. "Sequence A052294". OEIS Foundation. https://oeis.org/A052294.
- ↑ Colton, Simon; Dennis, Louise (2002), "The NumbersWithNames Program", Seventh International Sumposium on Artificial Intelligence and Mathematics, https://nottingham-repository.worktribe.com/output/1022768
- ↑ Cai, Tianxin (2022), Perfect Numbers And Fibonacci Sequences, World Scientific, p. 50, ISBN 978-9811244094
Original source: https://en.wikipedia.org/wiki/Pernicious number.
Read more |