2026 AIME II Problema 14

A continuación está la solución preparada profesionalmente para el Problema 14 del 2026 AIME II, de LIVE by Po-Shen Loh. También puedes intentar el examen cronometrado completo, ver todas las soluciones del 2026 AIME II, o revisar la clave de respuestas.

Todos los problemas se usan con el permiso legal oficial de la Mathematical Association of America (MAA).

Conceptos:operación personalizadaparticiones y composicionesparidadanálisis por casos

Nivel de dificultad: 3370

14.

Para enteros aa y b,b, definimos ab=aba \circ b = a - b si aa es impar y bb es par, y ab=a+ba \circ b = a + b en caso contrario. Halla el número de sucesiones a1,a2,a3,,ana_1, a_2, a_3, \ldots, a_n de enteros positivos tales que a1+a2+a3++an=12a_1 + a_2 + a_3 + \cdots + a_n = 12 y a1a2a3an=0,a_1 \circ a_2 \circ a_3 \circ \cdots \circ a_n = 0, donde las operaciones se realizan de izquierda a derecha; es decir, a1a2a3a_1 \circ a_2 \circ a_3 significa (a1a2)a3.(a_1 \circ a_2) \circ a_3.

For integers aa and b,b, let ab=aba \circ b = a - b if aa is odd and bb is even, and ab=a+ba \circ b = a + b otherwise. Find the number of sequences a1,a2,a3,,ana_1, a_2, a_3, \ldots, a_n of positive integers such that a1+a2+a3++an=12a_1 + a_2 + a_3 + \cdots + a_n = 12 and a1a2a3an=0,a_1 \circ a_2 \circ a_3 \circ \cdots \circ a_n = 0, where the operations are performed from left to right; that is, a1a2a3a_1 \circ a_2 \circ a_3 means (a1a2)a3.(a_1 \circ a_2) \circ a_3.

Solución:

Como aba+b(mod2),a - b \equiv a + b \pmod 2, el valor acumulado tras kk pasos tiene la misma paridad que a1++ak.a_1 + \cdots + a_k. Así que el término aka_k se resta exactamente cuando aka_k es par y la suma prefija a1++ak1a_1 + \cdots + a_{k-1} es impar, y el valor final es 1212 menos el doble del total de los términos restados. Debemos contar las composiciones de 1212 en las que los términos pares situados donde la suma prefija es impar suman exactamente 6.6. La paridad prefija cambia exactamente en los términos impares, así que los términos impares vienen en número 2m2m (el total es par), y los términos restados son precisamente los términos pares que están entre el (2i1)(2i-1)-ésimo y el 2i2i-ésimo términos impares; estos mm "tramos impares" deben contener términos pares que sumen 6,6, mientras que los otros m+1m + 1 tramos contienen términos pares que suman 6A,6 - A, donde AA es la suma de los términos impares.

Sea fr(t)f_r(t) el número de maneras de llenar rr tramos ordenados con sucesiones de términos pares que suman 2t.2t. Un tramo es una composición de 2t2t en partes pares, es decir, de t:t: f1(t)=2t1f_1(t) = 2^{t-1} para t1t \ge 1 y f1(0)=1;f_1(0) = 1; al convolucionar se obtienen los valores necesarios más abajo: fr(0)=1,f_r(0) = 1, fr(1)=r,f_r(1) = r, f2(2)=5,f_2(2) = 5, y f1(3),f2(3),f3(3)=4,12,25.f_1(3), f_2(3), f_3(3) = 4, 12, 25. Las composiciones de AA en 2m2m partes impares son en número ((A2m)/2+2m12m1).\binom{(A - 2m)/2 + 2m - 1}{2m - 1}.

Análisis por casos según mm y A:A: para m=1:m = 1: A=2,4,6A = 2, 4, 6 dan 14f2(2)=20,1 \cdot 4 \cdot f_2(2) = 20, 24f2(1)=16,2 \cdot 4 \cdot f_2(1) = 16, y 341=12.3 \cdot 4 \cdot 1 = 12. Para m=2:m = 2: A=4,6A = 4, 6 dan 112f3(1)=361 \cdot 12 \cdot f_3(1) = 36 y 4121=48.4 \cdot 12 \cdot 1 = 48. Para m=3:m = 3: A=6A = 6 da 1251=25.1 \cdot 25 \cdot 1 = 25. El total es 20+16+12+3620 + 16 + 12 + 36 +48+25=157.+ 48 + 25 = 157.

Since aba+b(mod2),a - b \equiv a + b \pmod 2, the running value after kk steps has the same parity as a1++ak.a_1 + \cdots + a_k. So term aka_k is subtracted exactly when aka_k is even and the prefix sum a1++ak1a_1 + \cdots + a_{k-1} is odd, and the final value is 1212 minus twice the total of the subtracted terms. We must count compositions of 1212 in which the even terms sitting where the prefix sum is odd total exactly 6.6. The prefix parity flips exactly at odd terms, so the odd terms come in 2m2m (the total is even), and the subtracted terms are precisely the even terms lying between the (2i1)(2i-1)st and 2i2ith odd terms; these mm "odd stretches" must hold even terms totaling 6,6, while the other m+1m + 1 stretches hold even terms totaling 6A,6 - A, where AA is the sum of the odd terms.

Let fr(t)f_r(t) be the number of ways to fill rr ordered stretches with sequences of even terms totaling 2t.2t. One stretch is a composition of 2t2t into even parts, i.e. of t:t: f1(t)=2t1f_1(t) = 2^{t-1} for t1t \ge 1 and f1(0)=1;f_1(0) = 1; convolving gives the values needed below: fr(0)=1,f_r(0) = 1, fr(1)=r,f_r(1) = r, f2(2)=5,f_2(2) = 5, and f1(3),f2(3),f3(3)=4,12,25.f_1(3), f_2(3), f_3(3) = 4, 12, 25. Compositions of AA into 2m2m odd parts number ((A2m)/2+2m12m1).\binom{(A - 2m)/2 + 2m - 1}{2m - 1}.

Casework on mm and A:A: for m=1:m = 1: A=2,4,6A = 2, 4, 6 give 14f2(2)=20,1 \cdot 4 \cdot f_2(2) = 20, 24f2(1)=16,2 \cdot 4 \cdot f_2(1) = 16, and 341=12.3 \cdot 4 \cdot 1 = 12. For m=2:m = 2: A=4,6A = 4, 6 give 112f3(1)=361 \cdot 12 \cdot f_3(1) = 36 and 4121=48.4 \cdot 12 \cdot 1 = 48. For m=3:m = 3: A=6A = 6 gives 1251=25.1 \cdot 25 \cdot 1 = 25. The total is 20+16+12+3620 + 16 + 12 + 36 +48+25=157.+ 48 + 25 = 157.

← Problema 13#13Examen completoProblema 15#15 →

El Problema 14 en otros años