4444^4444 mod 9=(7^4444) mod 9 now we will see the remainders which power of 7 gives while dividing with 9
7^1mod9=7
7^2mod9=4
7^3mod9=1 so remainder will repeat after this
now divide 4444 with 3 the remainder which it gives that term is the final remainder (term refers here to remainder whch we got while dividing powers of 7)
so 4444 mod 3=1 so 1st term remainder which is 7 earlier