I'm working on project Euler problem 203 that reads like this:
[...]
A positive integer n is called square-free if no square of a prime divides n. Of the twelve distinct numbers in the first eight rows of Pascal’s triangle, all except 4 and 20 are square-free.
[...]
Find the sum of the distinct square-free numbers in the first 51 rows of Pascal’s triangle.
I basically understand how to solve this, what was bugging me was how to find the largest prime factor that I need to check against.
I found online a solution that says:
Only a few primes are required. For example, $51!$ is the biggest numerator $(\binom{n}{k} = \frac{n!}{k! (n-k)!} )$ and the largest prime factor required is $≤ √51$ which is 7.
Why does this work - how can I know that I only need to check divisibility by prime number squares up until $7^2$? The next prime number is 11, so how would I know that I don't need to check the numbers of pascals triangle against e. g. $11^2$, $13^2$, etc. given that I only need to check the numbers up until row 51 of pascals triangle?