Almost Half Full!

Let S S be the set of all natural numbers n n such that there are exactly n 2 \lfloor \frac{n}{2}\rfloor prime numbers less than or equal to n n .

What is the cardinality of the set S S ?

Image Credit: Wikimedia Cardinality


The answer is 8.

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.

2 solutions

Caleb Townsend
Mar 3, 2015

By the prime number theorem, π ( n ) n ln ( n ) \pi(n) \approx\frac{n}{\ln(n)} but n ln ( n ) < n 2 \frac{n}{\ln(n)} < \frac{n}{2} when n > e 2 , n > e^2, and by n = 20 , n = 20, it is clear that n 2 n ln ( n ) . \lfloor\frac{n}{2}\rfloor \gg \frac{n}{\ln(n)}. Therefore we need only check the integers from 1 1 to 20. 20. Doing so gives the set S = { 1 , 2 , 4 , 6 , 8 , 9 , 11 , 13 } S = \{1, 2, 4,6,8,9,11,13\} with a cardinality of 8. 8.

Prime counting theorem! Yay!.

Krishna Ar - 6 years, 3 months ago

The elements of S S are S = { 1 , 2 , 4 , 6 , 8 , 9 , 11 , 13 } S=\{1,2,4,6,8,9,11,13\} . For all natural numbers n n higher than 13, the number of primes would be less n 2 \lfloor \frac{n}{2}\rfloor .

Hence, the cardinality is 8 \boxed{8} .

I missed 1 1 on my first attempt. :) It's interesting to note that if we change the condition to n k \lfloor \frac{n}{k} \rfloor for any integer k > 2 k \gt 2 the only element of S k S_{k} will be 1. 1.

Another variation of your question is to make the inequality strict, i.e., just count the prime numbers less than n n . Then the cardinality of S S would be 11 11 , (I think).

Brian Charlesworth - 6 years, 3 months ago

Log in to reply

Yes i also missed 1 in the 1st attempt

Nayan Pathak - 6 years, 3 months ago

Could you provide a proof,sir?

Adarsh Kumar - 6 years, 3 months ago

Maybe I've just gone stupid, but why do the odd ones count for this? Take 11: there are 5 primes less than or equal to it (2,3,5,7,11), which is clearly not equal to n/2. Is there some rounding going on?

Also, why doesn't 0 get counted? There aren't any primes less than or equal to it, so I'd think it would fit.

Jacob Luciani - 6 years, 3 months ago

Log in to reply

The expression n 2 \lfloor \frac{n}{2} \rfloor is the greatest integer function, which returns the greatest integer less than or equal to n 2 \frac{n}{2} . So in the case of n = 11 n = 11 we have

n 2 = 11 2 = 5.5 = 5 , \lfloor \frac{n}{2} \rfloor = \lfloor \frac{11}{2} \rfloor = \lfloor 5.5 \rfloor = 5,

and there are indeed 5 5 primes less than or equal to 11 11 .

As for 0 0 , we are only looking for natural numbers, i.e., positive integers. If S S were to be composed of non-negative integers then yes, 0 0 would have to be included.

Brian Charlesworth - 6 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...