# Always the Same Last Digit

How many digits $$D$$ (0-9 inclusive) satisfy the following property?

For each positive integer $$N$$, the remainder when $$D^N$$ is divided by 10 is constant.

×