How many numbers between 1 and 2016 are divisible by exactly one of 4, 6, or 10?
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.
Length [ Table [ If [ Boole [ ( n m o d 4 ) = 0 ] + Boole [ ( n m o d 6 ) = 0 ] + Boole [ ( n m o d 1 0 ) = 0 ] = 1 , n , Nothing ] , { n , 2 0 1 6 } ] ] ⇒ 4 7 0
Problem Loading...
Note Loading...
Set Loading...
Let us denote the set of numbers between 1 and 2016 that are divisible by 4 as A, divisible by 6 as B and divisible by 10 as C. Then m(A)=504, m(B)=336, and m(C)=201. m(AB)=168, m(BC)=67, m(CA)=100, and m(ABC)=33. Therefore the required number is m(A)+m(B)+m(C)-2[m(AB)+m(BC)+m(CA)]+3m(ABC)=504+336+201-2(168+100+67)+3(33)=470