Close Menu
New York Examiner News

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Simon O’Connor Dropped From Modest Mouse Tour

    August 2, 2026

    Trump backs off from new strikes on Iran, claiming Mideast allies have outlines of Hormuz deal

    August 2, 2026

    President Trump Announces Perimeters of Peace Deal with Iran Has Been Agreed To – Halts All Planned US Airstrikes on Iran

    August 2, 2026
    Facebook X (Twitter) Instagram
    New York Examiner News
    • Home
    • US News
    • Politics
    • Business
    • Science
    • Technology
    • Lifestyle
    • Music
    • Television
    • Film
    • Books
    • Contact
      • About
      • Amazon Disclaimer
      • DMCA / Copyrights Disclaimer
      • Terms and Conditions
      • Privacy Policy
    New York Examiner News
    Home»Science»All Natural Numbers Are Either Happy or Sad. Some Are Narcissistic, Too
    Science

    All Natural Numbers Are Either Happy or Sad. Some Are Narcissistic, Too

    By AdminOctober 24, 2023
    Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    All Natural Numbers Are Either Happy or Sad. Some Are Narcissistic, Too


    There are many different types of numbers, some of which you may remember from school: natural, rational, irrational, imaginary, calculable and incalculable numbers. Today, however, we are going to talk about something cheerful, namely, the “happy numbers.” Yes, they do indeed appear in mathematics, and that really is their technical name.

    Happy numbers don’t have any real-world applications, but they do have amazing properties, which is why they are so popular among amateur mathematicians. For example, all natural numbers can be divided into either “happy” or “sad” numbers. And a generalization of “happiness” leads to the “narcissistic numbers,” which are strongly fixated on themselves.

    Who first developed the concept of happy numbers is unclear. They were popularized by British mathematician Reginald Allenby in the 1960s: take any natural number, say, 13, square its digits (12 = 1; 32 = 9) and add them (1 + 9 = 10). Then repeat this happy calculation with the resulting number (12 + 02 = 1). If the sum of this second exercise is 1, you have reached a “fixed point.” That is, each further execution of the same process will always yield the result 1. Numbers that eventually yield a 1 by repeated happy calculations are called happy numbers.

    [Read more about happy numbers]

    Consequently, one would have to call all other numbers sad. The exciting thing is that the sad numbers also follow a fixed pattern when you apply the happy calculation. For example, let’s start with 4: 42 =16, and 16 will yield 37 (the sum of 12 = 1 and 62 = 36). If we keep this pattern going, we get 16 → 58 → 89 → 145 → 42 → 20 → 4. Because we started the happy calculation with 4, the number sequence starts over again. Thus, if the repeated happy calculation for a number yields the values 4, 16, 37, 58, 89, 145, 42 or 20, the number is bound to be sad. Allenby immediately wondered whether the natural numbers could all be split into happy (with end result of 1) or sad (part of the cycle starting with 4)—or whether the happy calculation has other endpoints.

    There’s a quick way to find out. To do this, you first need to check just how large the sum of squared digits of a number can become. Suppose you have a one-digit number, say, 9. Its square, 81, is larger than itself. The same is true for two-digit numbers such as 99: 92 + 92 = 162. This is not true, however, for numbers with three or more digits. Even for 999, the sum of the squares of its digits is smaller than the number itself, namely, 243. This means that if you repeatedly perform the happy calculation for a three-digit number, you will only get three-digit values. If, on the other hand, you start with a four-digit number, the happy calculation in the first step will lead to a three-digit result.

    An Algorithm for Sad Numbers

    To prove that every natural number is either happy or sad, you have to go through all three-digit numbers. This task is tedious but not particularly complicated. For example, you can create a short algorithm to assist the process that follows these steps:

    1. Choose a value from 0 to 9 for i, j and k.

    2. Calculate z = i2 + j2 + k2.

    3. If z = 1, then the three-digit number ijk is a happy number.

    4. If z = 4, 16, 37, 58, 89, 145, 42 or 20, then ijk is a sad number.

    5. If neither case is true, set new values for i, j and k using the “floor function” Floor(x), which assigns each decimal number its rounded-down integer value (Floor(1.6) = 1): i = Floor(z⁄100), j = Floor(a – 100 x i⁄10), k = a – i x 100 – j x 10. With these new values for i, j and k, continue the algorithm at step 2.

    Repeat this algorithm for all one-digit numerical values of i, j and k, and the result will always be either a happy or a sad number. In other words, all three-digit numbers are either happy or sad—as are all four-digit numbers because the sum of their squared digits (the first step in the happy calculation) will yield a three-digit number.

    This argument can be continued for ever larger natural numbers. The result is that every natural number is either happy or sad. There is no value that escapes these fates when repeatedly using the happy calculation.

    But experts were not satisfied with this result. Mathematicians have also wondered, for example, what percentage of numbers are happy. Do they become rarer with increasing size, like the prime numbers, or do they always appear with about the same frequency?

    First, there are an infinite number of happy numbers. After all, every power of 10, 10x, necessarily corresponds to a happy number.

    But what about their density ρ, that is, the ratio of the happy to all natural numbers? Among the first 10 natural numbers, there are three happy ones (ρ = 0.3). Among the first 100, there are 20 (ρ = 0.2). And among the first 1,000 natural numbers, there are 143 happy ones (ρ = 0.143). There is even an entry in the Online Encyclopedia of Integer Sequences (OEIS) that deals only with the frequency of the happy numbers in an interval from 0 to 10n. Thus, if you calculate the density for different powers of n, you get the following picture:

    All Natural Numbers Are Either Happy or Sad. Some Are Narcissistic, Too


    The ratio of happy numbers to all other numbers in a given interval is called the density of happy numbers. Credit: Spektrum der Wissenschaft, styled by Amanda Montañez

    Now one might assume that the density is equivalent to about 14 percent. But as mathematician Justin Gilmer proved in 2011 in a preprint paper (which was then published in 2013), the happy numbers do not have a clearly defined density. Their density, he demonstrated, depends on the interval under consideration, and it does not converge to a fixed limit. Although that result surprised many people, the happy numbers are far from the only ones that do not have a fixed, defined density.

    Such behavior is found, for example, in the set of all numbers beginning with a 1. Among the first nine numbers (1, 2, 3, 4, 5, 6, 7, 8, 9), there is exactly one that starts with a 1 (the number 1), which corresponds to a density of 1⁄9. Among the first 19 numbers (1, 2,…, 10, 11, 12,…, 19), there are 11 that start with a 1, giving a density of 11⁄19. And among the first 99 numbers, there are still 11 that start with a 1, so you have a density of 11⁄99 = 1⁄9 in this number interval. Among the first 199, there are 110 that start with 1, so the density is 110⁄199, and so on.

    The density fluctuates between high and low values depending on which interval you pick. In such cases, no limit can be given for the density within the whole natural numbers. The same is true for the happy numbers. Depending on the interval, their density varies from a value below 12 to more than 18 percent.

    Counting Consecutive Happy Numbers

    Another question that keeps mathematicians occupied: How many consecutive happy numbers can there be? The first two are 31 and 32. To find the first three consecutive happy numbers, you must go to four-digit values: 1,880, 1,881, 1,882.

    In a 2006 preprint paper, mathematician Hao Pan proved that there are any number of consecutive happy numbers. (The paper was subsequently published in 2008.) The catch is that you may have to search for a long time. A sequence with four consecutive numbers can be found at 7,839, one with five starts with 44,488, and one with six starts with 7,899,999,999,999,959,999,999,996.

    Yet another puzzle is considering how many times the happy calculation is needed to bring a happy number to 1. This quantity can be used to define the overall happiness of a number. The fewer iterations, the happier the number. So 1, 10, 100, and so on are extremely happy, while 13 is slightly less so.

    Which number is the least happy without being sad? Among the two-digit numbers, it’s 7. It takes five iterations to go from 7 to 1. Next up is 356, for which you need six passes of the happy calculation.

    After that point, things get wild. If you want an even less happy number, you end up with a value of 977 digits: 378899999…999. The happy number with nine iterations has 10977 digits—and from the looks of it, there’s no limit to the number of iterations. One can find a happy number for any number n, which will yield a 1 only after n repeated happy calculations. Thus, there is no limit to the degree of nonhappiness.

    And things become really exciting when one generalizes the concept of happy numbers. Instead of summing the squared digits, you can also add the third powers. In this case, the natural numbers no longer split into two camps but into nine. Either the iterations end at 1 (“happy cubes”), or they end at one of four other fixed points (153, 370, 371, 407) or in one of four cycles: 55 → 250 → 133 → 55; 160 → 217 → 352 → 160; 136 → 244 → 136; or 919 → 1,459 → 919.

    Numbers That Return to Themselves

    This generalization leads to another concept from number theory. When a number consists of n digits, you can calculate the sum of its digits exponentiated by n. For 243, for example, the result is: 23 + 43 + 33 = 8 + 64 + 27 = 99. For some numbers, the result of this calculation leads back to itself. An example is 153 because 13 + 53 + 33 = 153. Such numbers are called narcissistic.

    All single-digit numbers are narcissistic. In fact, there are only 89 narcissistic numbers in total: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1,634, 8,208, 9,474, 54,748, 92,727, 93,084, 548,834,… and the largest is 115,132,219,018,763,992,565,095,597,973,971,522,401.

    It’s possible to prove that there are no narcissistic numbers larger than that with an estimation. Suppose a number has n digits. The maximum size of the summed digits raised to the power of n results if all digits have the value of 9: n x 9n. But above a certain size of n, this result is always smaller than the smallest number consisting of n digits (10n–1). Thus, such a number cannot possibly be narcissistic.

    The transition occurs with 60-digit numbers: while 60 x 960= 1.08 x 1059 and is thus larger than 1059, 61 x 961= 0.99 x 1060 and is smaller than 1060. This is true for all n > 60. Therefore, there can be no narcissistic number consisting of more than 60 digits. By going through all numbers from 0 to 60 digits, one can test them for narcissism. As it turns out, there are only 89 of them.

    Because there are only finitely many narcissistic numbers, they hold significantly fewer open questions than the happy numbers. But both categories are extremely suitable for an amusing pastime.

    This article originally appeared in Spektrum der Wissenschaft and was reproduced with permission.



    Original Source Link

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Email Reddit Telegram
    Previous ArticleDoctor Jekyll review – gives Christopher Lee and Peter Cushing a run for their money
    Next Article Aleph is building a platform to reconcile disparate financial data

    RELATED POSTS

    AI helped produce two proofs for the same cryptography problem

    August 2, 2026

    Astronomers Have Detected an Exomoon for the First Time

    August 1, 2026

    Postpartum psychosis is at the center of the Lindsay Clancy trial. What is it?

    August 1, 2026

    The World Is Too Hot. El Niño Is Partly to Blame

    July 31, 2026

    Spacecraft will swarm asteroid Apophis during fateful 2029 Earth flyby

    July 31, 2026

    Tropical Diseases Like Dengue Fever and Chikungunya Are on the Rise in Europe

    July 30, 2026
    latest posts

    Simon O’Connor Dropped From Modest Mouse Tour

    Following his public apology over sending inappropriate messages to an underage fan, guitarist Simon O’Connor…

    Trump backs off from new strikes on Iran, claiming Mideast allies have outlines of Hormuz deal

    August 2, 2026

    President Trump Announces Perimeters of Peace Deal with Iran Has Been Agreed To – Halts All Planned US Airstrikes on Iran

    August 2, 2026

    SummerSlam results: Oba Femi pins Brock Lesnar in a Hell in a Cell match

    August 2, 2026

    Best Organic Mattresses (2026): Certified Nontoxic, Natural Sleep

    August 2, 2026

    AI helped produce two proofs for the same cryptography problem

    August 2, 2026

    Vin Diesel Calls it Best Script He’s Read in Years

    August 2, 2026
    Categories
    • Books (1,402)
    • Business (6,306)
    • Events (64)
    • Film (6,242)
    • Lifestyle (4,317)
    • Music (6,365)
    • Politics (6,288)
    • Science (5,659)
    • Technology (6,238)
    • Television (5,932)
    • Uncategorized (8)
    • US News (6,294)
    popular posts

    Building a Watch Collection on a Budget? Here’s Where to Start (2026)

    You don’t need a four-figure Swiss movement to know what time it is—or look good…

    Fox News Digital voter group reacts to Trump attacking Biden on inflation

    June 28, 2024

    Selena Gomez’s Social Media Break, Reneé Rapp Shades Tory Lanez – Billboard

    January 10, 2024

    John Lennon Sings on the Beatles’ Early “Yellow Submarine” Demo: Listen

    October 21, 2022
    Archives
    Browse By Category
    • Books (1,402)
    • Business (6,306)
    • Events (64)
    • Film (6,242)
    • Lifestyle (4,317)
    • Music (6,365)
    • Politics (6,288)
    • Science (5,659)
    • Technology (6,238)
    • Television (5,932)
    • Uncategorized (8)
    • US News (6,294)
    About Us

    We are a creativity led international team with a digital soul. Our work is a custom built by the storytellers and strategists with a flair for exploiting the latest advancements in media and technology.

    Most of all, we stand behind our ideas and believe in creativity as the most powerful force in business.

    What makes us Different

    We care. We collaborate. We do great work. And we do it with a smile, because we’re pretty damn excited to do what we do. If you would like details on what else we can do visit out Contact page.

    Our Picks

    AI helped produce two proofs for the same cryptography problem

    August 2, 2026

    Vin Diesel Calls it Best Script He’s Read in Years

    August 2, 2026

    MTV Turns 45: How Michael Jackson, Madonna and ‘The Real World’ Made TV History

    August 2, 2026
    © 2026 New York Examiner News. All rights reserved. All articles, images, product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Terms & Conditions and Privacy Policy.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
    Cookie SettingsAccept All
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    SAVE & ACCEPT