Multiples of a number
How to find the multiples of a number?
Simply multiply this number by 1, 2, 3, 4, 5, etc.
Example: the multiples of 3 are: 3x1, 3x2, 3x3, 3x4, etc, these are equal to,
3, 6, 9, 12, 15, 18, 21, etc
The list of multiples of a number is infinite (we can't list all of them!).
Easily identify multiples of 2, 3, 5...
- A multiple of 2 always ends with an even digit: 0, 2, 4, 6 or 8.
- A mutliple of 3: the sum of its digits is a multiple of 3.
- A multiple of 4: its last 2 digits form a number which is a multiple of 4.
- A multiple of 5: always ends with 0 or 5.
- A mutliple of 9: the sum of its digits is a multiple of 9.
- A multiple of 10: always ends with 0.
Special cases
- A number is always multiple of itself.
- 0 is a multiple of all numbers (0 = 0 x n).
Programming
Python
This python program finds the first c multiples of a given integer n.
def multiples(n, c):
m = []
for i in range (c):
m.append((i+1) *n)
return m