Power Doesn't Change Last Digit?

Number Theory Level 5

How many integers $$1\leq{a}\leq{2015}$$ are there such that $$a^{a^a}$$ and $$a^a$$ end with the same digit?

×