Remember Me
forgot your password?

Happy Numbers

Introduction

A ‘happy number’ is a special type of number.

A "happy number" is defined by the following process.

1. Take any positive integer ‘p’. 2. Break it down into digits. 3. Square the digits and add those squares. 4. You get a new number ‘n’. 5. If n = 1, then ‘p’ is a happy number; if not, set p = n and repeat the above steps. 6. If the process repeats forever, then ‘p’ is not a happy number. Let’s look at a simple example. 7 is a happy number. Let me take you through the step-by-step process.

Iteration 1

7 is a single digit number. Square it…we get, 7^2 = 49. 49 is NOT equal to 1. So, let’s repeat the process.

Iteration 2

49 has two digits 4 and 9. Square them…we get 4^2 = 16 and 9^2 = 81. Add the squares. 16 + 81 = 97
97 is NOT equal to 1. So, repeat the process. 9^2 + 7^2 = 130

Iteration 3

1^2 + 3^2 + 0^2 = 10

(Iteration 4) 1^2 + 0^2 = 1 --->

We ended up at 1. (Iteration 5) So, 7 is a happy number. It took 5 iterations to conclude that ‘7’ is a happy number.

You may be surprised to find that it takes only a few steps to conclude that a bigger number like 1,122 is happy! 1,122 has four digits 1, 1, 2, and 2. Add their squares.

We get: 1^2 + 1^2 + 2^2 + 2^2 = 1 + 1 + 4 + 4 = 10 Repeat the process. 1^2 + 0^2 = 1 + 0 = 1

The following are the HAPPY NUMBERS up to 100. 1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100

How to identify unhappy numbers?

Numbers that are not happy are called unhappy numbers.

If a number is not happy then the iteration process discussed above never ends at 1. Instead, the process enters into an infinite loop.

The loop is this:

4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, ...... ---> we can stop the iteration process once we get any one of these numbers.

For example:

Let’s check out if 124 is a happy number.

1^2 + 2^2 + 4^2 = 21

2^2 + 1^2 = 5

5^2 = 25

2^2 + 5^2 = 29

2^2 + 9^2 = 85

8^2 + 5^2 = 89

We’ve reached 89! We can stop the iteration process here and conclude that 124 is not a happy number. If we proceed further, we’ll get into an infinite loop and will never get out of it.

Some interesting facts about “Happy Numbers”:

(1) All powers of 10 are happy numbers.

(2) Reversing the digits of a HAPPY NUMBER produces another HAPPY NUMBER.

For example, 19 is a happy number, 91 is happy as well. Try it!

(3) Multiplying a happy number by any power of ten yields another happy number.

Let’s consider the same example.

19 is a happy number…so are 190, 1900, 19000 and so on.

(4) By rearranging the digits of a happy number, we get another happy number.

Consider the same example we’ve just discussed. 19, 190, 1900, 19000 are all happy numbers.

Let me rearrange the digits. 91, 109, 1009, 1090, 10009, 10900, 10090, 91000 are also happy numbers.

chandrajeet

I’m Chandrajeet, an in-house writer for iCoachMath. iCoachMath is an effective, convenient, easy-to-use online Math Program which has been used by thousands of students, teachers, and parents. iCoachMath strives to lead K-12 students to excellence in math by offering quality web-based educational solutions. iCoachMath’s instructional and lesson materials are aligned to State Curriculum Standards in all 50 states (USA). iCoachMath

Rate this Article: 4 / 5 stars - 1 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest K-12 Education Articles
  • More from chandrajeet

How to Write Good NCERT Answers

By: Ashutosh Sharma | 30/12/2009
While writing NCERT answers it is important for students to realize that it is more than a mere compulsory exercise. Questions in the CBSE Boards exams are usually based on these NCERT Questions. To excel in exams, students should stress on writing quality NCERT answers by keeping in mind the salient points that govern the writing of answers for the specific content of the subject matter.

CBSE Solutions

By: Ashutosh Sharma | 30/12/2009
It is important for students to write their CBSE solutions in accordance to the marking scheme by CBSE. Revising using sample papers containing answers that are in accordance to the guidelines for CBSE solutions is an ideal revision exercise.

Comparing 3-D Traditional Chess Set to the Flat-Faced Chess Set

By: Frank Ho | 28/12/2009
It is interesting to note that western chess set are all made in 3-D figurines and each chess piece looks very different and yet Chinese chess sets are all flat-faced with uniform look on one surface, why is this? I do not know if anyone has done a research to look into and see why there is such a disparity in using such a very different styles?

Parent Involvement: A Must for Child’s Progress

By: shashanks | 27/12/2009
Children learn not only at school or with an online tutor; they also learn from their parents. Home, after all, is the first school that your child begins his education at. Parents can contribute to their child’s progress by doing small things that can really make a difference.

How to Run Math Franchise Successfully

By: Frank Ho | 26/12/2009
The other day, some one suggested to me that Ho Math and Chess shall also offer SAT course, I asked why? I was told that there is a demand and also many learning centers now offer SAT courses. The reason for Ho Math and Chess also jumps on the band wagon seems to be convincing but I would prefer to look at this issue in a long term view and this prompts me to spend next few days to ponder on a topic that is just how to run a math franchised centre and be successful?

Expand your Horizons and Profits as a Home Stager

By: Karen Schaefer | 26/12/2009
So how can you develop a way for you to get more bookings with your Home Staging Business? The answer is that you have to know the fundamentals of this business and how to go about it effectively. Once you know the necessary skills of the trade then there is no doubt you will be ready to expand your horizons and profits as a home stager.

Homework: Is it necessary?

By: shashanks | 24/12/2009
Many times we wonder why homework is important for the progress of our children. Homework gives parents an opportunity to get involved in the education of their children. When parents show interest in their child’s education, it promotes enthusiasm in the child. As a result of this the child takes more interest in completing his homework.

K-12 Education In India

By: Cyril Britto | 24/12/2009
K-12 education is widely preferred these days. It stands as an advantage over the normal schooling in a lot of areas educating the students in best possible ways.

Number Systems- Part-2

By: chandrajeet | 16/07/2009 | K-12 Education
This article is a continuation of last week's article on Number Systems. This week, we’ll discuss Octal and Hexadecimal Number Systems.

Number Systems –Part-1

By: chandrajeet | 16/07/2009 | K-12 Education
The following are the four important types of number systems.

Happy Numbers

By: chandrajeet | 30/04/2009 | K-12 Education
A ‘happy number’ is a special type of number. A "happy number" is defined by the following process.

Mathematics in Physics and Chemistry

By: chandrajeet | 30/04/2009 | K-12 Education
‘Mathematics is the queen of all sciences’ – those are the words of Carl Friedrich Gauss the greatest mathematician of all time.

Fractions in Real Life

By: chandrajeet | 08/04/2009 | K-12 Education
The term ‘fraction’ is from the Latin word ‘fractus’ meaning ‘broken’. A fraction is a broken number that represents a part or parts of something considered as a whole.

Greatest Possible Error

By: chandrajeet | 25/03/2009 | K-12 Education
No measurement is exact. Every time we make a measurement a certain degree of error creeps in, however careful we are.

The Counting Principle

By: chandrajeet | 13/03/2009 | K-12 Education
The Counting Principle Works for Two or More Events Occurring in Series. it is Used to Find the Total Number of Possible Outcomes When Two or More Events Occur Together.

Supplementary Angles

By: chandrajeet | 13/03/2009 | K-12 Education
Two Angles are Said to be Supplementary if the Sum of Their Measures is 180°. Each Angle is the Supplement of the Other.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.22, 6, w3)