I came across this interesting problem in the Olympiad Maths challenge practice problem, and it is really fascinating:
Some $n$ numbers are selected randomly from the integers $1$ to $420$. $2$ integers $a$ and $b$ are chosen from that set of $n$ numbers such that $a$ and $b$ are relatively prime. Find the minimum value of $n$ that ensures there exists $2$ such integers $a$ and $b$
If you don't know what relatively prime is it means that the two numbers don't share any factors greater than one (therefore the HCF of $a$ and $b$ is $1$)
My evaluation is that two numbers is relatively prime if at least $1$ of the number is prime, therefore not sharing any factors with the other number except $1$ (since primes have the factors only $1$ and itself).
This evaluation should work! UNLESS the second number is the prime number doubled, or tripled, or quadrupled, etc.
First of all, I have to deal with the fact that we're randomly picking from the set of $1$ to $420$, so I have to find the number of prime numbers between $1$ and $420$.
This post almost answers my prime question, but I tried $\pi(420) $ and I got about $69$ (Very nice coincidence by the way, $69420$). And the pool of answers is no near that (Multiple choice: $208, 211, 215, 220$) So I am now stuck in this hole precisely here.
Any help would be greatly appreciated!