2004 AIME II Problema 14

A continuación está la solución preparada profesionalmente para el Problema 14 del 2004 AIME II, de LIVE by Po-Shen Loh. También puedes intentar el examen cronometrado completo, ver todas las soluciones del 2004 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:Ecuación diofánticadígitosanálisis por casos

Nivel de dificultad: 3270

14.

Considera una cadena de nn 77, 777777,7777\ldots77, en la que se insertan signos ++ para producir una expresión aritmética. Por ejemplo, 7+77+777+7+7=8757 + 77 + 777 + 7 + 7 = 875 podría obtenerse de ocho 77 de esta manera. ¿Para cuántos valores de nn es posible insertar signos ++ de modo que la expresión resultante tenga valor 70007000?

Consider a string of nn 77's, 777777,7777\ldots77, into which ++ signs are inserted to produce an arithmetic expression. For example, 7+77+777+7+7=8757 + 77 + 777 + 7 + 7 = 875 could be obtained from eight 77's in this way. For how many values of nn is it possible to insert ++ signs so that the resulting expression has value 7000?7000?

Solución:

Dividir entre 77 convierte los sumandos en 1,1, 11,11, o 111111 (ningún sumando más largo cabe, ya que 1111>10001111 \gt 1000) y el objetivo en 1000.1000. Si x,x, y,y, zz cuentan los sumandos de cada tamaño, entonces x+11y+111z=1000x + 11y + 111z = 1000 y n=x+2y+3z.n = x + 2y + 3z. Restar da n=10009(y+12z),n = 1000 - 9(y + 12z), así que los posibles nn corresponden exactamente a los valores alcanzables de v=y+12z.v = y + 12z.

Las restricciones son z9z \le 9 y 0y1000111z110 \le y \le \frac{1000 - 111z}{11} (entonces x0x \ge 0 se sigue). Para z=0,1,,9z = 0, 1, \ldots, 9 el valor v=y+12zv = y + 12z recorre los intervalos [0,90],[0, 90], [12,92],[12, 92], [24,94],[24, 94], [36,96],[36, 96], [48,98],[48, 98], [60,100],[60, 100], [72,102],[72, 102], [84,104],[84, 104], [96,106],[96, 106], y {108}\{108\} (cuando z=9,z = 9, solo y=0y = 0 cabe). Su unión es todo entero desde 00 hasta 106106 junto con 108;108; solo 107107 es inalcanzable.

Así que vv toma 107+1=108107 + 1 = 108 valores, y n=10009vn = 1000 - 9v toma 108108 valores.

Dividing by 77 turns the summands into 1,1, 11,11, or 111111 (no longer summand fits, since 1111>10001111 \gt 1000) and the target into 1000.1000. If x,x, y,y, zz count the summands of each size, then x+11y+111z=1000x + 11y + 111z = 1000 and n=x+2y+3z.n = x + 2y + 3z. Subtracting gives n=10009(y+12z),n = 1000 - 9(y + 12z), so the possible nn correspond exactly to the attainable values of v=y+12z.v = y + 12z.

The constraints are z9z \le 9 and 0y1000111z110 \le y \le \frac{1000 - 111z}{11} (then x0x \ge 0 follows). For z=0,1,,9z = 0, 1, \ldots, 9 the value v=y+12zv = y + 12z ranges over the intervals [0,90],[0, 90], [12,92],[12, 92], [24,94],[24, 94], [36,96],[36, 96], [48,98],[48, 98], [60,100],[60, 100], [72,102],[72, 102], [84,104],[84, 104], [96,106],[96, 106], and {108}\{108\} (when z=9,z = 9, only y=0y = 0 fits). Their union is every integer from 00 to 106106 together with 108;108; only 107107 is unattainable.

So vv takes 107+1=108107 + 1 = 108 values, and n=10009vn = 1000 - 9v takes 108108 values.

← Problema 13#13Examen completoProblema 15#15 →

El Problema 14 en otros años