Find the remainder when $2^{2^{24}}$ is divided by 9
My approach is as follow $2^{2^{24}}=4^{12}$ Hence we can write is as $2^{2^{24}}=2^{4^{12}}=16^{12}$
$16^{12}=(9+7)^{12}$
We get remainder as $7^{12}$
Now $7^{12}=(9-2)^{12}$
We get remainder as $(-2)^{12}=2^{12}$
Now $2^{12}=8^{4}=(9-1)^4$
Hence final answer is $"1"$ but we are getting different solution.
I presume that I am making some mistake in calculation