Always the Same Last Digit

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

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

×

Problem Loading...

Note Loading...

Set Loading...