The number of ordered pairs such that is divisible by 5 is
Note that ends in or (corresponding to and respectively.)
Thus cannot end in 5 for any values of
In other words, for to be divisible by 5, it should end in 0.
For to end in , the forms of m and should be as follows:
m | n | |
1 | 4r | 4s + 2 |
2 | 4r + 1 | 4s + 3 |
3 | 4r + 2 | 4s |
4 | 4r + 3 | 4s + 1 |
Thus, for a given value of m there are just values of n for
which ends in 0. [For instance, if then 2, 6, 10, …, 98]
there are ordered pairs for
which is divisible by 5.