2005 AMC 10B Problem 22

Below is the professionally curated solution for Problem 22 of the 2005 AMC 10B, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2005 AMC 10B solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:triangular numberfactorialdivisibilityprime

Difficulty rating: 1990

22.

For how many positive integers nn less than or equal to 2424 is n!n! evenly divisible by 1+2++n?1 + 2 + \cdots + n?

88

1212

1616

1717

2121

Solution:

Since 1+2++n=n(n+1)2,1 + 2 + \cdots + n = \dfrac{n(n+1)}{2}, divisibility is equivalent to n!n(n+1)/2=2(n1)!n+1 \dfrac{n!}{n(n+1)/2} = \dfrac{2(n-1)!}{n+1} being an integer.

If n+1n + 1 is not prime (and n1n \ge 1), its factors appear among 1,2,,n11, 2, \ldots, n-1 or in the factor 2,2, so the fraction is an integer. If n+1n + 1 is an odd prime, it divides neither (n1)!(n-1)! nor 2,2, so the fraction is not an integer.

The odd primes at most 2525 are 3,5,7,11,13,17,19,23,3, 5, 7, 11, 13, 17, 19, 23, giving 88 failing values of n.n. Hence 248=1624 - 8 = 16 values work.

Thus, C is the correct answer.

Problem 22 in Other Years