Skip to content
Surf Wiki
Save to docs
general/integer-sequences

From Surf Wiki (app.surf) — the open knowledge base

Odious number

Number with odd number of 1s in binary


Number with odd number of 1s in binary

The first 16 evil and odious numbers in binary. It can be seen, that both sequences differ only in the least significant bits, which form the Thue–Morse sequence for the evil, and its negation for the odious numbers. The other bits form the even numbers.

In number theory, an odious number is a positive integer that has an odd number of 1s in its binary expansion. Nonnegative integers that are not odious are called evil numbers.

In computer science, an odious number is said to have odd parity.

Examples

The first odious numbers are:

Properties

If a(n) denotes the nth odious number (with a(0)=1), then for all n, a(a(n))=2a(n).

Every positive integer n has an odious multiple that is at most n(n+4). The numbers for which this bound is tight are exactly the Mersenne numbers with even exponents, the numbers of the form n = 2^{2r}-1, such as 3, 15, 63, etc. For these numbers, the smallest odious multiple is exactly n(n+4) = 2^{4r}+2^{2r+1}-3.

References

References

  1. {{Cite OEIS. A000069
  2. (2016). "Beyond odious and evil". [[Aequationes Mathematicae]].
  3. (2011). "Thue–Morse at multiples of an integer". Journal of Number Theory.
  4. (1959). "On some two way classifications of integers". [[Canadian Mathematical Bulletin]].
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Odious number — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report