Maths Olympiad Prep

Library / /7 of 42

Number theory Difficulty 5.0 AIME, harder Prove it Ireland

For nn a positive integer, n!=123(n1)nn! = 1 \cdot 2 \cdot 3 \cdots (n-1) \cdot n is the product of the positive integers from 1 to nn. Determine, with proof, all positive integers nn for which n!+3n! + 3 is a power of 3.

Solution

The only solutions are 3!+3=323! + 3 = 3^2 and 4!+3=334! + 3 = 3^3. We can calculate directly that 5!+3=1235! + 3 = 123 is not a power of 3. For n6n \ge 6, we have 9n!9 \mid n! as 3 and 6 are two of the factors defining n!n!. But also 9 is a factor of all powers of 3 beyond 313^1, so we would have the contradiction that 9 divides both n!n! and n!+3n! + 3.

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: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.