luogu#P10414. [蓝桥杯 2023 国 A] 2023 次方

[蓝桥杯 2023 国 A] 2023 次方

Problem Description

Find the value of 2(3(4(…2023)))2^{(3^{(4^{(\ldots ^{2023})})})} modulo 20232023.

Note: All parts in the expression above are exponents. It can be written as 2∗∗(3∗∗(4∗∗(…2023…))2** (3**(4**(\ldots 2023\ldots)), where ∗∗** denotes exponentiation.

This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The answer is an integer. When submitting, fill in only this integer; adding extra content will result in no score.

Hint

Translated by ChatGPT 5