\(4^{2024}-7=4^2.4^{2022}-7=16.\left(4^3\right)^{674}-7=16.64^{674}-7\)
Do \(64\equiv1\left(mod9\right)\Rightarrow64^{674}\equiv1\left(mod9\right)\)
\(\Rightarrow16.64^{674}\equiv16\left(mod9\right)\)
\(\Rightarrow16.64^{674}-7\equiv16-7\left(mod9\right)\)
Mà \(16-7=9⋮9\Rightarrow4^{2024}-7⋮9\)