Maths Olympiad Prep

Track / Stage 4 / 111 of 340 #851 of 2444

Problem 851

AMC 12 late, AIME early
Combinatorics Difficulty 4.6 Find the answer HMMO · United States · 2020

Compute the number of positive integers less than 10!10! which can be expressed as the sum of at most 4 (not necessarily distinct) factorials.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Next problem →

Official solution

Solution:

Since 0!=1!=10! = 1! = 1, we ignore any possible 0!0!'s in our sums.

Call a sum of factorials reduced if for all positive integers kk, the term k!k! appears at most kk times. It is straightforward to show that every positive integer can be written uniquely as a reduced sum of factorials. Moreover, by repeatedly replacing k+1k+1 occurrences of k!k! with (k+1)!(k+1)!, every non-reduced sum of factorials is equal to a reduced sum with strictly fewer terms, implying that the aforementioned reduced sum associated to a positive integer nn in fact uses the minimum number of factorials necessary.

It suffices to compute the number of nonempty reduced sums involving {1!,2!,,9!}\{1!, 2!, \ldots, 9!\} with at most 4 terms. By stars and bars, the total number of such sums, ignoring the reduced condition, is (139)=714\binom{13}{9} = 714.

The sums that are not reduced must either contain two copies of 1!1!, three copies of 2!2!, or four copies of 3!3!. Note that at most one of these conditions is true, so we can count them separately. If kk terms are fixed, there are (13k9)\binom{13-k}{9} ways to choose the rest of the terms, meaning that we must subtract (119)+(109)+(99)=66\binom{11}{9} + \binom{10}{9} + \binom{9}{9} = 66. Our final answer is 71466=648714 - 66 = 648.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.