Proof: Divisibility of Integers by 4

AI Thread Summary
An integer N is divisible by 4 if and only if the number formed by its last two digits (the tens and units digits) is divisible by 4. The proof utilizes the fact that powers of 10 greater than or equal to 2 are congruent to 0 modulo 4. The discussion clarifies that the proof applies to all integers, including negative numbers, and emphasizes that the assumption of N being non-negative is valid without loss of generality. The conversation also touches on the applicability of modular arithmetic versus elementary methods in understanding the divisibility rule. Overall, the divisibility of integers by 4 hinges on the last two digits of the number.
Math100
Messages
813
Reaction score
229
Homework Statement
Establish the following divisibility criteria:
An integer is divisible by ## 4 ## if and only if the number formed by its tens and units digits is divisible by ## 4 ##.
[Hint: ## 10^{k}\equiv 0\pmod {4} ## for ## k\geq 2 ##.]
Relevant Equations
None.
Proof:

Let ## N ## be an integer.
Then ## N=a_{m}10^{m}+a_{m-1}10^{m-1}+\dotsb +a_{1}10+a_{0} ## for ## 0\leq a_{k}\leq 9 ##.
Note that ## 10^{k}\equiv 0\pmod {4} ## for ## k\geq 2 ##.
Thus ## 4\mid N\Leftrightarrow N\equiv 0\pmod {4}\Leftrightarrow a_{1}10+a_{0}\equiv 0\pmod {4} ##.
Therefore, an integer is divisible by ## 4 ## if and only if the number formed by its tens and units digits is divisible by ## 4 ##.
 
Physics news on Phys.org
Correct, but why do you say integers and then restrict everything to positive numbers? The same is true for negative numbers.
 
fresh_42 said:
Correct, but why do you say integers and then restrict everything to positive numbers? The same is true for negative numbers.
I guess I was a bit thoughtless. So should I mention "Let N be a natural number.", instead?
 
Is this exercise necessarily in "modular arithmetics", or can we solve it like in 5th grade (that is when kids are about 11 yo)?
 
Math100 said:
I guess I was a bit thoughtless. So should I mention "Let N be a natural number.", instead?
No. Integers are fine. Everything remains true if you put a minus sign in front of ##N.##

E.g., you can say: Let ##N## be an integer. We assume w.l.o.g. ##N\geq 0## because the negative case can be treated the same way.

w.l.o.g. stands for: without loss of generality. It means that the assumption is allowed because it is no real restriction.
 
  • Like
Likes Delta2 and Math100
Math100 said:
Proof:

Let ## N ## be an integer.
Then ## N=a_{m}10^{m}+a_{m-1}10^{m-1}+\dotsb +a_{1}10+a_{0} ## for ## 0\leq a_{k}\leq 9 ##.
You can write ##N## as:

##\displaystyle N=\left(a_{m}10^{m-2}+a_{m-1}10^{m-3}+\dotsb + a_{3}10+a_{2}\right) \,100 + a_{1}10+a_{0} ##
 

Similar threads

Replies
7
Views
2K
Replies
3
Views
2K
Replies
1
Views
1K
Replies
3
Views
2K
Replies
1
Views
1K
Replies
1
Views
1K
Back
Top