Computation of large powers

48 Views Asked by At

How do I check if $2^{123456789}$ is divisible by 9?

I tried using modular exponentiation but it is way too tedious.

Is there an easier or faster way to solve it?

Thanks!

1

There are 1 best solutions below

0
On

Powers of $2$ are not divisible by $9$ as they do not have $3^2$ as factors.