Nelson Q.

asked • 12/21/22

Use mathematical induction to prove that an operation always leads to 1 or a loop

Hello! I have a question: Use mathematical induction to prove that the operation of summing the squares of the digits always leads either to 1 or the single loop (4, 16, 37, 58, 89, 145, 42, 20, 4). I tried to use a specific example (n>3) but my teacher told me to be more broad. This is what I have so far:


n=number

d=# of digits in n


Base case: For n = 1, the sum of all the (digits squared) is equal to 1.

Inductive step: Assume that the statement above is true for all positive integers less than n. We will prove that it is also true for n.

Let n be a positive integer and let d1, d2, ..., dx be the digits of n, where x is the number of digits in n. Then the sum of all the (digits squared) of n is equal to:

(digit1^2)+(digit2^2)+(digit3^2)...(digitx^2)

According to the inductive step, this expression will either lead to 1 or to a loop.

Therefore, the statement holds for all positive integers n by mathematical induction.


I'm gonna be honest, I don't think my answer makes much sense. I'm trying to avoid using calculus, but I feel like I need to use logarithms. Thoughts?


Thank you so much!






Mark M.

I think your inductive step is incorrectly worded. If n = 1, as in the base case, then you cannot assume it works for positive numbers less than 1 since there are none! Also the usual step is assume/demonstrate true for n = 1, then prove true for n + 1.
Report

12/21/22

Nelson Q.

Ok, so how do I progress on this problem?
Report

12/21/22

Mark M.

Elablrate the task of summing the squares of the digits. What are the precursors to 4, 16, 37, 58, 89, 145, 42, 20, 4?
Report

12/21/22

Doug C.

What I think the problem is trying to state: pick a number not in the loop, let's say 25: 4 + 25 = 29; 4+81=85; 64+25 = 89 and you are now in the loop. 64 + 81 = 145; 1+16+25 = 42; 16+4=20; 4+0=4; etc. How to show that for any integer summing the squares of the digits eventually ends in the loop using mathematical induction...?
Report

12/21/22

Doug C.

Just found this article: johndcook.com/blog/2018/03/24/squared-digit-sum/
Report

12/21/22

Doug C.

And here is a link to a site that shows the complete article "A set of eight numbers" -- mathematical induction is not used: fermatslibrary.com/s/a-set-of-eight-numbers
Report

12/21/22

Nelson Q.

Wow! Thank you so much!
Report

12/23/22

3 Answers By Expert Tutors

By:

Nelson Q.

But how does this prove the original hypothesis? Doesn't this only prove the lemmas and s(n) has to be less or equal to 243?
Report

01/01/23

Nelson Q.

How does this prove the hypothesis? Doesn't this only prove the lemmas?
Report

01/01/23

Daniel B.

tutor
I completed the proof making an effort to use induction whenever possible.
Report

01/01/23

Aime F. answered • 12/21/22

Tutor
4.7 (62)

Experienced University Professor of Mathematics & Data Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.