Rem(32^32^32)=Rem(4^32)^32
now 4^3 = 64 = 63+1. hence when 64 to the power anything is divided by 7, the remainder will always be 1
so, Rem(32^32)/3 = Rem(33-1)^32/3 = 1.
Hence Rem(4*64^k)/7 = 4
now 4^3 = 64 = 63+1. hence when 64 to the power anything is divided by 7, the remainder will always be 1
so, Rem(32^32)/3 = Rem(33-1)^32/3 = 1.
Hence Rem(4*64^k)/7 = 4