Maths Olympiad Prep

Library / /124 of 348

Combinatorics Difficulty 4.8 AIME Find the answer

Compute the number of positive integers less than 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.

Solution

Since 0!=1!=10!=1!=1, we ignore any possible 0!'s in our sums. Call a sum of factorials reduced if for all positive integers kk, the term kk! 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 kk! 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!, three copies of 2!, or four copies of 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.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.