To prove that the difference between two consecutive cubes cannot be divisible by 5, we can start by considering the expression for the difference between the cubes of two consecutive integers, ( n ) and ( n+1 ):
[
(n+1)^3 - n^3.
]
Expanding the expression, we have:
[
(n+1)^3 = n^3 + 3n^2 + 3n + 1,
]
so the difference is:
[
(n+1)^3 - n^3 = (n^3 + 3n^2 + 3n + 1) - n^3 = 3n^2 + 3n + 1.
]
We need to show that this expression cannot be divisible by 5.
Before proceeding, recall that when an integer ( n ) is divided by 5, the possible remainders (or residues) for ( n^3 ) are 0, 1, and -1. Let's consider different possible values of ( n \mod 5 ).
-
Case ( n \equiv 0 \pmod{5} ):
- ( n = 5k ) for some integer ( k ).
- Substitute ( n = 5k ) into the expression ( 3n^2 + 3n + 1 ):
[
3n^2 + 3n + 1 = 3(5k)^2 + 3(5k) + 1 = 75k^2 + 15k + 1.
]
This simplifies to:
[
75k^2 + 15k + 1 \equiv 0 + 0 + 1 \equiv 1 \pmod{5}.
]
-
Case ( n \equiv 1 \pmod{5} ):
Substitute ( n = 5k + 1 ) into the expression:
[
3((5k + 1)^2) + 3(5k + 1) + 1 = 3(25k^2 + 10k + 1) + 15k + 3 + 1.
]
Simplifying:
[
= 75k^2 + 30k + 3 + 15k + 3 + 1 = 75k^2 + 45k + 7.
]
Modulo 5, this gives:
[
75k^2 + 45k + 7 \equiv 0 + 0 + 2 \equiv 2 \pmod{5}.
]
-
Case ( n \equiv 2 \pmod{5} ):
Substitute ( n = 5k + 2 ) into the expression:
[
3((5k + 2)^2) + 3(5k + 2) + 1 = 3(25k^2 + 20k + 4) + 15k + 6 + 1.
]
Simplifying:
[
= 75k^2 + 60k + 12 + 15k + 6 + 1 = 75k^2 + 75k + 19.
]
Modulo 5, this gives:
[
75k^2 + 75k + 19 \equiv 0 + 0 + 4 \equiv 4 \pmod{5}.
]
-
Case ( n \equiv 3 \pmod{5} ):
Substitute ( n = 5k + 3 ) into the expression:
[
3((5k + 3)^2) + 3(5k + 3) + 1 = 3(25k^2 + 30k + 9) + 15k + 9 + 1.
]
Simplifying:
[
= 75k^2 + 90k + 27 + 15k + 9 + 1 = 75k^2 + 105k + 37.
]
Modulo 5, this gives:
[
75k^2 + 105k + 37 \equiv 0 + 0 + 2 \equiv 2 \pmod{5}.
]
-
Case ( n \equiv 4 \pmod{5} ):
Substitute ( n = 5k + 4 ) into the expression:
[
3((5k + 4)^2) + 3(5k + 4) + 1 = 3(25k^2 + 40k + 16) + 15k + 12 + 1.
]
Simplifying:
[
= 75k^2 + 120k + 48 + 15k + 12 + 1 = 75k^2 + 135k + 61.
]
Modulo 5, this gives:
[
75k^2 + 135k + 61 \equiv 0 + 0 + 1 \equiv 1 \pmod{5}.
]
In all cases, the result ( 3n^2 + 3n + 1 \equiv 1, 2, ) or ( 4 \pmod{5} ).
Thus, there is no case where the difference ( (n+1)^3 - n^3 = 3n^2 + 3n + 1 \equiv 0 \pmod{5} ). Therefore, the difference between two consecutive cubes cannot be divisible by 5.