4.2.2 Exotic Definitions of Numbers
Here are some additional classifications of numbers, similar to what is found in Section 3.1.2:
- A happy number is a number whose sum of the squares of the individual digits eventually leads to a chain that terminates to 1. For example 19 is a happy number because . The first handful of happy numbers are 1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, and 100.
- An extravagant/wasteful number is a number whose prime factorization has more digits than the number itself (treating both the base and exponents as individual digits). For example 18 is an extravagant number because contains 2 digits and its prime factorization contains 3 digits. The first handful of extravagant numbers are 4, 6, 8, 9, 12, 18, 20, 22, 24, 26, 28, 30, 33, 34, 36, 38, 39, 40, 42, 44, 45, 46, 48, 50.
- An economical/frugal number is the opposite of an extravagant number: its prime factorization contains less digits than the number itself. For example 128 is an economical number because contains 3 digits and its prime factorization contains 2 digits. Unsurprisingly, cubes and higher powers of 2 and 3 are economical.
- An odious number is a non-negative number whose binary representation has an odd number of 1s. An example is which has 3 ones in its binary representation.
- An evil number is the opposite of an odious number: it has an even number of 1s. An example is which has 2 ones.
You can find all these crazy definitions of numbers (and more!) from the On-Line Encyclopedia of Integer Sequences (OEIS). It’s a pretty cool resource that you can spend hours just browsing cool sequences of numbers.