Maths Olympiad Prep

Library / /273 of 520

Combinatorics Difficulty 5.6 AIME, harder Find the answer

8. In the six-digit decimal number a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}}, each digit ai(1i6)a_{i}(1 \leqslant i \leqslant 6) is an odd number, and the digit 1 is not allowed to be adjacent (for example, 135131, 577797 satisfy the condition, while 311533 does not satisfy the condition), then the number of such six-digit numbers is \qquad.

A number or a short expression. Spacing and $ signs are ignored.

Solution

When ai(1i6)a_{i}(1 \leqslant i \leqslant 6) does not contain the digit 1, the number of six-digit numbers a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}} is 464^{6}; when ai(1i6)a_{i}(1 \leqslant i \leqslant 6) contains one 1, the number of six-digit numbers a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}} is 6456 \cdot 4^{5}; when ai(1i6)a_{i}(1 \leqslant i \leqslant 6) contains two 1s, the number of six-digit numbers a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}} is C5244C_{5}^{2} \cdot 4^{4}; when ai(1i6)a_{i}(1 \leqslant i \leqslant 6) contains three 1s, the number of six-digit numbers a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}} is C4343C_{4}^{3} \cdot 4^{3}, so the number of six-digit numbers a1a2a3a4a5a6\overline{a_{1} a_{2} a_{3} a_{4} a_{5} a_{6}} that satisfy the condition is 13056.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.