# Mathematical Fun With Happy Numbers

Lesson Plans > Mathematics > Number Theory## Mathematical Fun With Happy Numbers

When I was in high school, a friend of mine--who happened to also be a foe from a rival math team--introduced me to the concept of a *Happy Number*.

"A *Happy Number*," she said, "is a number that, if you square its digits, and add them together, and then take the result and square *its* digits and add them together, and keep doing that over and over again, you come down to the number 1."

Clear? Well, I didn't get what she was saying until she gave me an example. So, let's try the number 32.**32**: 3^{2} + 2^{2} = 9 + 4 = **13****13**: 1^{2} + 3^{2} = 1 + 9 = **10****10**: 1^{2} + 0^{2} = 1 + 0 = **1**

Ah-ha! It comes down to the number 1, so that means 32 is a Happy Number! (It also means that 13 and 10 are Happy Numbers as well, right?)

Well, that raised a question in my mind: *How many times do you have to go through that cycle? What if it never comes down to 1? How will you know?*

Her answer was simple: If it never comes down to 1, it will come down to 4 instead. (Presumably, that's an UN-happy number!)

So here's an example of an *Unhappy Number:***25**: 2^{2} + 5^{2} = 4 + 25 = **29****29**: 2^{2} + 9^{2} = 4 + 81 = **85****85**: 8^{2} + 5^{2} = 64 + 25 = **89****89**: 8^{2} + 9^{2} = 64 + 81 = **145****145**: 1^{2} + 4^{2} + 5^{2} = 1 + 16 + 25 = **42****42**: 4^{2} + 2^{2} = 16 + 4 = **20****20**: 2^{2} + 0^{2} = 4 + 0 = **4**

She was right! It came down to 4!

Do Happy Numbers have any practical application in the real world? Probably not. But there are some interesting questions and activities that are related to these numbers. Some are for advanced students, some are not. Here are some things you might want to have your students try. The first list is great for students who are struggling with addition facts and multiplication facts. The second list is for more advanced students.**Math Fact Drilling**

- Is your telephone number a happy number?
- Is your street address a happy number?
- What about your weight, age, height? Are they happy?
- Find all the happy numbers between 1 and 20
- When you're going for a ride in the car, check out the license plate numbers. Can you figure out any of them
*in your head?*(This is a challenge, but makes a great travel game.)

**Theoretical Problems**

- Are there an infinite number of happy numbers?
- Are there an infinite number of unhappy numbers?
- Ellen told me that every number comes down to either one or four--can you prove it? (Hint: I wrote a computer program to help me with this one.)
- Can you find any patterns in the sequence of happy umbers?
- Does the ratio of happy to unhappy numbers approach a limit?

Here is an interesting number, which is called a *Happy Cube*. The number is 153. Watch what happens when you do the happy number process, only *cubing* instead of squaring.**153**: 1^{3} + 5^{3} + 3^{3} = 1 + 125 + 27 = **153**

There are other happy cubes; can you find any?

Here's one last tidbit, found by a reader (Martyn Johnston): 4,210,818 is a happy seventh-power. Why?

4^{7} + 2^{7} + 1^{7} + 0^{7} + 8^{7} + 1^{7} + 8^{7} = 4,210,818

Crazy, huh?

## Handouts/Worksheets

## Happy Number Worksheet

Determine whether the following are happy numbers. Show your work.

- Your telephone number

- Your street address

- Your zip code

- Your school classroom number

- Your favorite number

- Your age

- Find all the happy numbers between 1 and 20.

## Happy Number Theory

A happy number is a number which, if you add together the squares of its digits, and then do the same process on the result recursively, results in a value of 1. For example, 23 is happy because: 2^{2} + 3^{2} = 13; 1^{2} + 3^{2} = 10; 1^{2} + 0^{2} = 1.

*prove or disprove*.

- Let f(x) be the function by which a number is transformed, summing the squares of its digits. Then there exists a number k for which f(x) < x if x>k.

- There is an infinite number of happy numbers.

- There is an infinite number of unhappy numbers (number that never reach 1).

- All unhappy numbers eventually reach 4 instead of 1.

- if h(x) = the number of happy numbers less than x, and u(x) = the number of unhappy numbers less than x, then approaches a limit as x approaches infinity.h(x)u(x)

- There are an infinite number of pairs of consecutive happy numbers (example: 391, 392).

# Ask Professor Puzzler

Do you have a question you would like to ask Professor Puzzler? Click here to ask your question!**Over 3,000 Pages of Free Content**

We've been providing free educational games and resources since 2002.

Would you consider a donation of any size to help us continue providing great content for students of all ages?