Indivisible

How many positive integers less than or equal to 1,000 are divisible by neither 3, nor 5, nor 7?

507 457 543 534

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.

1 solution

Richard Desper
Sep 26, 2019

Use the Inclusion-Exclusion formula: (see https://brilliant.org/wiki/principle-of-inclusion-and-exclusion-pie/ )

Notation: let [ n ] = [n] = {integers from 1 to n}, and, for our purposes, [ k , n ] = [k,n] = {multiples of k less than or equal to n}

We are looking for [ 1000 ] { [ 3 , 1000 ] [ 5 , 1000 ] [ 7 , 1000 ] } |[1000] \setminus \{[3,1000] \cup [5,1000] \cup [7,1000] \}|

Let X = [ 1000 ] X=[1000] , and X t = [ t , 1000 ] X_{t} = [t,1000] for t { 3 , 5 , 7 , 15 , 21 , 35 , 105 } t \in \{3,5,7,15,21,35,105\}

Let X = X ( X 3 X 5 X 7 ) X^*= X \setminus (X_3 \cup X_5 \cup X_7)

Note : for p , q { 3 , 5 , 7 } p,q \in \{3,5,7\} , X p X q = X p q X_p \cap X_q = X_{pq} . Similarly, X 3 X 5 X 7 = X 105 X_3 \cap X_5 \cap X_7 = X_{105}

By I-E, X = X ( X 3 + X 5 + X 7 ) + ( X 15 + X 21 + X 35 ) X 105 |X^*| = |X| - (|X_3| + |X_5| + |X_7|) + (|X_{15}| + |X_{21}| + |X_{35}|) - |X_{105}|

Note also X k = ( 1000 k ) |X_k| = \lfloor({\frac{1000}{k}})\rfloor

Thus X = 1000 ( 333 + 200 + 142 ) + ( 66 + 47 + 28 ) 9 |X^*| = 1000 - (333 + 200 + 142 ) + (66 + 47 + 28) -9 , i.e. X = 457 |X^*| = 457 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...