¿Cuál es la solución para {2 ^ 50 + 3 ^ 50 + 5 ^ 50} ^ 50 mod 50?

Si sabes un poco de matemáticas, no necesitas calculadora o un programa. Una nota al margen: [math] \ varphi (n) [/ math] es la función totient de Euler.

[matemáticas] x_1 = 2 ^ {50} (\ mathop {\ mathrm {mod}} 50) \ Rightarrow x_1 = 2y_1 \ Rightarrow y_1 = 2 ^ {49} (\ mathop {\ mathrm {mod}} 25) [/ matemáticas]. Como [math] \ varphi (25) = 20 \ Rightarrow y_1 = 2 ^ 9 (\ mathop {\ mathrm {mod}} 25) = 2 ^ 7 \ cdot 2 ^ 2 = 3 \ cdot 4 = 12 (\ mathop { \ mathrm {mod}} 25) \ Rightarrow x_1 = 24 (\ mathop {\ mathrm {mod}} 50) [/ math]

Como [math] \ varphi (50) = 20 \ Rightarrow 3 ^ {50} (\ mathop {\ mathrm {mod}} 50) = 3 ^ {10} (\ mathop {\ mathrm {mod}} 50) = ( -7) ^ 2 (\ mathop {\ mathrm {mod}} 50) = 49 (\ mathop {\ mathrm {mod}} 50) = – 1 (\ mathop {\ mathrm {mod}} 50) [/ math]

Finalmente [matemáticas] x_3 = 5 ^ {50} (\ mathop {\ mathrm {mod}} 50) \ Rightarrow x_3 = 25y_3 \ Rightarrow y_3 = 5 ^ {48} (\ mathop {\ mathrm {mod}} 2) = 1 \ Rightarrow x_3 = 25 (\ mathop {\ mathrm {mod}} 50) [/ math]

Entonces [matemáticas] (2 ^ {50} + 3 ^ {50} + 5 ^ {50}) = 48 (\ mathop {\ mathrm {mod}} 50) = – 2 (\ mathop {\ mathrm {mod}} 50) [/ matemáticas]

Finalmente [matemáticas] (- 2) ^ {50} = 2 ^ {50} = 24 (\ mathop {\ mathrm {mod}} 50) [/ math]

La calculadora científica promedio se atragantaría al tratar de calcular esto. Entonces, creé un código para verificar la respuesta, que aparentemente es 24.

Usando el lenguaje de programación J (jsoftware.com)

50 | ((2x ^ 50) + (3x ^ 50) + (5x ^ 50)) ^ 50

24

La respuesta es 24

More Interesting