Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.2.5 (Number of multiples of $7$)
Exercise 1.2.5 (Number of multiples of $7$)
How many integers between and are divisible by ?
Answers
Proof. The number of integers between and which are divisible by is the number of integers such that
Since , this condition is equivalent to
Note that for and ,
and
So the condition (2) is equivalent to
Therefore
□
Check:
counter = 0 for x in range(100,1001): if x % 7 == 0: counter += 1 print(counter) 128