Improving 3 Digit Number Solutions

  • Context: MHB 
  • Thread starter Thread starter Ilikebugs
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the properties of three-digit numbers, specifically focusing on the concept of digit sums and methods for determining numbers with a specific digit sum. Participants explore whether there are more efficient methods than guess and check for finding three-digit numbers that meet certain criteria related to their digit sums.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants question if there is a better method than guess and check for finding three-digit numbers with specific properties.
  • A hypothesis is proposed regarding the digit sum function, suggesting that adding 9 to a number does not change its digit sum.
  • Participants discuss the implications of this hypothesis, particularly focusing on how the ones and tens digits change when adding 9 to a number.
  • It is noted that if a number ends in zeroes, the behavior of the digit sum may differ, prompting further exploration.
  • One participant suggests a formula for finding three-digit numbers with a digit sum of 5, leading to the conclusion that there are 100 such numbers.
  • Another participant observes that the digit sum for consecutive numbers increases by 1, with a specific example involving the range of three-digit numbers.
  • There is a mention of the relevance of digit sums in number theory and discrete mathematics, with a participant sharing a personal anecdote related to their use.

Areas of Agreement / Disagreement

Participants express varying levels of agreement on the properties of digit sums and the proposed hypotheses, but no consensus is reached on all points, particularly regarding the implications of the digit sum behavior when numbers end in zeroes.

Contextual Notes

The discussion includes assumptions about the behavior of digit sums that may depend on specific cases, such as the ending digits of the numbers being considered. Some mathematical steps and definitions are not fully resolved.

Who May Find This Useful

Readers interested in number theory, mathematical properties of numbers, and those exploring efficient methods for solving numerical problems may find this discussion relevant.

Ilikebugs
Messages
94
Reaction score
0
View attachment 6241 Is there a better way than guess and check? Also is there a way for a 3 digit number to get to 3 steps, because 999 only goes to 2.
 

Attachments

  • POTW D D.png
    POTW D D.png
    30.2 KB · Views: 128
Mathematics news on Phys.org
Let's denote the "digit sum" function by $\text{D}_{\text{S}}$. After computing this function for the first several natural numbers $n\in\mathbb{N}$ such that $\text{D}_{\text{S}}(n)=5$, I wish to put forth the hypothesis:

$$\text{D}_{\text{S}}(n+9)=\text{D}_{\text{S}}(n)$$.

Let's try to prove this...let's begin by letting $n$ have $m$ digits...thus:

$$n=\sum_{k=0}^{m-1}\left(a_{k}10^{k}\right)$$ where $0\le a_k\le9$ and $0<a_{m-1}$.

We can see that we must have:

$$\text{D}_{\text{S}}(n)=\text{D}_{\text{S}}\left(\sum_{k=0}^{m-1}\left(a_{k}\right)\right)$$

Let's first examine the case where $0<a_0$...what happens to $a_0$ and $a_1$ when we add $9$ to $n$?
 
the digit sum is the same?
 
Ilikebugs said:
the digit sum is the same?

That's the hypothesis we're trying to prove.

What I'm asking is when the one's digit for $n$ is not zero, what happens to the one's digit and the ten's digit when we add 9 to $n$?
 
The ones digit is subtracted by 1 and the tens digit is added by 1
 
Ilikebugs said:
The ones digit is subtracted by 1 and the tens digit is added by 1

Correct! :D

So this leave the digit sum unchanged. What about if $n$ ends in one or more zeroes? What can we do then? (Thinking)
 
MarkFL said:
Correct! :D

So this leave the digit sum unchanged. What about if $n$ ends in one or more zeroes? What can we do then? (Thinking)

Hint: The commutative property of addition...(Thinking)
 
Okay, let's assume the lemma I gave is true, and so all numbers having at least 3 digits and whose digit sum is 5 is given by:

$n=95+9m$ where $m\in\mathbb{N}$

We find the largest 3 digit number whose digit sum is 5 to be 995. So we set:

$n=95+9m=995$

$$9m=900$$

$$m=100$$

Thus, there are 100 such numbers for which the question called. And you are correct that all can be found in less than 3 steps.
 
Alternatively, observe that the digit sum for consecutive numbers increases by 1 as we add 1, "rolling over" to 1 as we increase by one from a digit sum of 9. Since 999 - 99 = 900 and 900/9 = 100, there are 100 numbers in the given range with a digit sum of 5.
 
  • #10
greg1313 said:
Alternatively, observe that the digit sum for consecutive numbers increases by 1 as we add 1, "rolling over" to 1 as we increase by one from a digit sum of 9. Since 999 - 99 = 900 and 900/9 = 100, there are 100 numbers in the given range with a digit sum of 5.

Greg, I'm just curious, had you ever heard of "digit sums" before this thread? I hadn't. It seems a topic for a rich exploration. :D
 
  • #11
MarkFL said:
Greg, I'm just curious, had you ever heard of "digit sums" before this thread? I hadn't. It seems a topic for a rich exploration. :D

Yes. Actually they appear in number theory and discrete mathematics (at least). I once used digit sums to solve a problem that involved finding the missing digits in a sum. I don't recall the exact problem; it was quite some time ago. :)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
1
Views
2K
Replies
5
Views
2K