How many numbers are there between 1 and 100 (inclusive) that are divisible by 9 or 4?
Check out the set of such problems
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of integers between 1 and 100 (inclusive) divisible by 9 or 4 = the number of integers between 1 and 100 (inclusive) divisible by 9 + the number of integers between 1 and 100 divisible (inclusive) by 4 − the number of integers between 1 to 100 (inclusive) divisible by both 4 and 9.
In formula:
n = ⌊ 9 1 0 0 ⌋ + ⌊ 4 1 0 0 ⌋ − ⌊ 3 6 1 0 0 ⌋ = 1 1 + 2 5 − 2 = 3 4
Notation: ⌊ ⋅ ⌋ denotes the floor function .