2004 AIME I Problem 6
Below is the professionally curated solution for Problem 6 of the 2004 AIME I, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2004 AIME I solutions, or check the answer key.
All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).
Difficulty rating: 2510
6.
An integer is called snakelike if its decimal representation satisfies if is odd and if is even. How many snakelike integers between and have four distinct digits?
Solution:
A four-digit snakelike number satisfies First count the arrangements of any four distinct digits into this pattern. The largest digit must sit in position or If is in position the other three form so the largest of them takes position and the remaining two can go in either order: ways. If is in position any of the other three digits can be and then fixes the rest: ways. So each set of four digits admits exactly snakelike orders.
If is not among the digits, all orders give valid numbers: If is among them, note must occupy position or (positions and must exceed a neighbor), and position is forbidden. With in position any of the other three digits can be and fixes the rest, so of the orders survive:
The total is
Problem 6 in Other Years
1997 AIME · 1998 AIME · 1999 AIME · 2000 AIME I · 2000 AIME II · 2001 AIME I · 2001 AIME II · 2002 AIME I · 2002 AIME II · 2003 AIME I · 2003 AIME II · 2004 AIME II · 2005 AIME I · 2005 AIME II · 2006 AIME I · 2006 AIME II · 2007 AIME I · 2007 AIME II · 2008 AIME I · 2008 AIME II · 2009 AIME I · 2009 AIME II · 2010 AIME I · 2010 AIME II · 2011 AIME I · 2011 AIME II · 2012 AIME I · 2012 AIME II · 2013 AIME I · 2013 AIME II · 2014 AIME I · 2014 AIME II · 2015 AIME I · 2015 AIME II · 2016 AIME I · 2016 AIME II · 2017 AIME I · 2017 AIME II · 2018 AIME I · 2018 AIME II · 2019 AIME I · 2019 AIME II · 2020 AIME I · 2020 AIME II · 2021 AIME I · 2021 AIME II · 2022 AIME I · 2022 AIME II · 2023 AIME I · 2023 AIME II · 2024 AIME I · 2024 AIME II · 2025 AIME I · 2025 AIME II · 2026 AIME I · 2026 AIME II