No integer whose digits add up to ## 15 ## can be a square or a cube

Click For Summary
SUMMARY

No integer whose digits sum to 15 can be a square or a cube. This conclusion is derived from modular arithmetic, specifically using properties of integers modulo 9. The proof establishes that squares can only yield residues of 0, 1, 4, or 7 modulo 9, while cubes yield 0, 1, or 8 modulo 9. Since 6 is not among these residues, integers with a digit sum of 15 cannot be squares or cubes.

PREREQUISITES
  • Understanding of modular arithmetic, specifically modulo 9
  • Knowledge of properties of squares and cubes in number theory
  • Familiarity with the concept of digit sums and their relation to modular equivalence
  • Basic algebraic manipulation and proof techniques
NEXT STEPS
  • Study the properties of numbers modulo 9 and their implications in number theory
  • Explore the concept of digit sums and their applications in modular arithmetic
  • Learn about the classification of integers based on their residues
  • Investigate other proofs involving modular arithmetic to strengthen understanding
USEFUL FOR

Mathematicians, students of number theory, and anyone interested in modular arithmetic and its applications in proving properties of integers.

Math100
Messages
817
Reaction score
230
Homework Statement
Prove that no integer whose digits add up to ## 15 ## can be a square or a cube.
[Hint: For any ## a ##, ## a^{3}\equiv 0, 1, ## or ## 8\pmod {9} ##.]
Relevant Equations
None.
Proof:

Let ## a ## be any integer.
Then ## a\equiv 0, 1, 2, 3, 4, 5, 6, 7 ##, or ## 8\pmod {9} ##.
This means ## a^{2}\equiv 0, 1, 4, 9, 7, 7, 0, 4 ##, or ## 1\pmod {9} ## and ## a^{3}\equiv 0, 1, 8, 0, 1, 8, 0, 1 ##, or ## 8\pmod {9} ##.
Thus ## a^{2}\equiv 0, 1, 4 ##, or ## 7\pmod {9} ## and ## a^{3}\equiv 0, 1 ##, or ## 8\pmod {9} ##.
There exists no integer ## a ## such that ## a^{2}\equiv 6\pmod {9} ## or ## a^{3}\equiv 6\pmod {9} ##.
Therefore, no integer whose digits add up to ## 15 ## can be a square or a cube.
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
Math100 said:
Homework Statement:: Prove that no integer whose digits add up to ## 15 ## can be a square or a cube.
[Hint: For any ## a ##, ## a^{3}\equiv 0, 1, ## or ## 8\pmod {9} ##.]
Relevant Equations:: None.

Proof:

Let ## a ## be any integer.
Then ## a\equiv 0, 1, 2, 3, 4, 5, 6, 7 ##, or ## 8\pmod {9} ##.
This means ## a^{2}\equiv 0, 1, 4, 9, 7, 7, 0, 4 ##, or ## 1\pmod {9} ## and ## a^{3}\equiv 0, 1, 8, 0, 1, 8, 0, 1 ##, or ## 8\pmod {9} ##.
Thus ## a^{2}\equiv 0, 1, 4 ##, or ## 7\pmod {9} ## and ## a^{3}\equiv 0, 1 ##, or ## 8\pmod {9} ##.
There exists no integer ## a ## such that ## a^{2}\equiv 6\pmod {9} ## or ## a^{3}\equiv 6\pmod {9} ##.
Therefore, no integer whose digits add up to ## 15 ## can be a square or a cube.
Let's see:
\begin{align*}
N&=a_k\cdot 10^k+\ldots +a_1\cdot 10 +a_0 = a^m \text{ with } m\in \{2,3\} \text{ and } \sum a_i =15\\
&\Longrightarrow \\
N&\equiv a_k \cdot 1^k +\ldots +a_1\cdot 1 +a_0 \equiv 15 \equiv 6 \pmod{9}
\end{align*}

Your solution is correct, I just needed ##10^j\equiv 1\pmod 9## to close the gap between ##\sum a_i =15## and ##a^m \not\equiv 6 \pmod 9.##
 
  • Like
Likes   Reactions: Delta2, malawi_glenn and Math100
fresh_42 said:
Your solution is correct, I just needed ##10^j\equiv 1\pmod 9## to close the gap between ##\sum a_i =15## and ##a^m \not\equiv 6 \pmod 9.##
But that is the only non-trivial step! Without it the 'proof' is worthless.
 
  • Like
Likes   Reactions: Delta2
pbuk said:
But that is the only non-trivial step! Without it the 'proof' is worthless.
The OP has done many problems here where he states that a number modulo 9 is equal to the sum of its digits (in base 10) modulo 9 so in his mind he has this step self implied I think. But of course the objective reader can't be inside his mind to know what he is thinking.
 
  • Like
Likes   Reactions: fresh_42
Delta2 said:
The OP has done many problems here where he states that a number modulo 9 is equal to the sum of its digits (in base 10) modulo 9 so in his mind he has this step self implied I think. But of course the objective reader can't be inside his mind to know what he is thinking.
Indeed. And even if the OP decides to assume this without proof, they still need to state that they are assuming this without proof. The same goes for the assumption that ## a^2 \pmod 9 \equiv (a \pmod 9)^2 \pmod 9 ## at the beginning.

Why the OP doesn't think it is important to include these assumptions but thinks that it is important to state that ## a \in \mathbb N \Rightarrow a\equiv 0, 1, 2, 3, 4, 5, 6, 7 \text{ or } 8 \pmod 9 ## is unfathomable to me.
 
  • Like
Likes   Reactions: Delta2

Similar threads

Replies
7
Views
2K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K