2026 AIME II Problem 14
Below is the professionally curated solution for Problem 14 of the 2026 AIME II, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2026 AIME II 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: 3370
14.
For integers and let if is odd and is even, and otherwise. Find the number of sequences of positive integers such that where the operations are performed from left to right; that is, means
Solution:
Since the running value after steps has the same parity as So term is subtracted exactly when is even and the prefix sum is odd, and the final value is minus twice the total of the subtracted terms. We must count compositions of in which the even terms sitting where the prefix sum is odd total exactly The prefix parity flips exactly at odd terms, so the odd terms come in (the total is even), and the subtracted terms are precisely the even terms lying between the st and th odd terms; these "odd stretches" must hold even terms totaling while the other stretches hold even terms totaling where is the sum of the odd terms.
Let be the number of ways to fill ordered stretches with sequences of even terms totaling One stretch is a composition of into even parts, i.e. of for and convolving gives the values needed below: and Compositions of into odd parts number
Casework on and for give and For give and For gives The total is
Problem 14 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 I · 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