I am trying to find a way to calculate the number of positive integers less than n such that these numbers are not divisible by the prime numbers 2,3,5,7,11,13.(adsbygoogle = window.adsbygoogle || []).push({});

If the problem were instead for prime numbers 2,3,5, then the solution is fairly simple. I used principle of inclusion and exclusion to solve the problem.

for example if n=50

[49/2] + [49/3] + [49/5] - [49/6] - [49/10] - [49/15] + [49/30] = 35

49-35 =14 integers under 50 that are not divisible by 2,3, or 5.

At first i thought this method might be applicable if the question included primes: 2,3,5,7,11,13. But doing principle inclusion exclusion would take a Lot of calculator bashing. is there a smarter way to solve this problem for n= 60000

**Physics Forums - The Fusion of Science and Community**

# A combinatorics Problem

Know someone interested in this topic? Share a link to this question via email,
Google+,
Twitter, or
Facebook

Have something to add?

- Similar discussions for: A combinatorics Problem

Loading...

**Physics Forums - The Fusion of Science and Community**