The expression 1000!(500!)2 is an integer. What is the largest integer $n$ such that $7^n$ divides this integer?
Since 1000! has 164 factors of 7 and 500! has 82 factors of 7,
1000!(500!)2 has 164−82−82=0
factors of 7.
In other words, all the factors of 7 cancel,
so the greatest power of 7 dividing 1000!(500!)2is 7^0 = 1,
so n=0.