In the 1982 MAA Annual High School Mathematics Examination (Problem #8), students were presented with:
"By definition $r! = r(r - 1)\cdots 1$ and $\binom{j}{k} = \frac{j!}{k!(j - k)!}$. If $\binom{n}{1}, \binom{n}{2}, \binom{n}{3}$ form an arithmetic progression with $n > 3$, then $n$ equals: (A) 5 (B) 7 (C) 9 (D) 11 (E) 12."
A sequence of three terms $A, B, C$ forms an arithmetic progression if the step from $A$ to $B$ equals the step from $B$ to $C$:
$$B - A = C - B \iff 2B = A + C$$
Recall the algebraic formulas for these combinations:
$$\binom{n}{1} = n, \qquad \binom{n}{2} = \frac{n(n - 1)}{2}, \qquad \binom{n}{3} = \frac{n(n - 1)(n - 2)}{6}$$
Plugging these into our arithmetic progression condition:
$$2 \cdot \left(\frac{n(n - 1)}{2}\right) = n + \frac{n(n - 1)(n - 2)}{6}$$
Since $n > 3$ (and therefore $n \ne 0$), we can divide every term by $n$:
$$n - 1 = 1 + \frac{(n - 1)(n - 2)}{6}$$
Multiply the entire equation by 6 to clear the fraction:
$$6(n - 1) = 6 + (n^2 - 3n + 2) \implies 6n - 6 = n^2 - 3n + 8$$
Rearranging terms into standard quadratic form:
$$n^2 - 9n + 14 = 0$$
Factoring this quadratic:
$$(n - 2)(n - 7) = 0$$
The roots are $n = 2$ and $n = 7$. The problem specifies $n > 3$, so the only solution is $n = 7$!
In this lesson, we use CodeByMath's built-in comb(n, k) function to test progression conditions with loops, and search for larger combinations in arithmetic progression!
Now you try. Replace ???? with c3 and run the code to verify that n = 7 is the only solution in this range.
Type your code here:
See your results here:
Share your code
Show a friend, family member, or teacher what you've done!
Here is a share link to your code:
Need a hint?
💡 What now?
The code uses CodeByMath's built-in comb(n, k) function (also available as choose(n, k) or nCr(n, k)) to compute the combination $\binom{n}{k} = \frac{n!}{k!(n-k)!}$.
The code has ???? for the third term of the arithmetic progression. Replace ???? with c3 and click Run Code to find which $n$ produces an arithmetic progression!
Check Example 1 to search for other combinations in arithmetic progression!