A175419 The single-digit number obtained by iterated mapping of r (starting with n) to a power-tower of its digits, or -1 if such a single-digit number is never reached.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 4, 9, 6, -1, -1, 1, 1, 1, 0, 1, 8, 1, 1, -1, -1, 1, 8, 1, 0, 1, 6, 1, 1, 1, 1, 1, 1, 1, 0, 1, 8, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 0
Examples
For n = 33: a(33) = 1 because starting with 33 we reach a single-digit 1 after 4 iterations: 3^3 = 27, 7^2 = 49, 9^4 = 6561, ((1^6)^5)^6 = 1. For n = 25: a(25) = -1 because starting with 25 the iteration enters a loop of 2-digit numbers: 5^2 = 25, 5^2 = 25, ...
Comments