|
|
A371078
|
|
Numbers formed by the rightmost decimal digits of n^n that are the same as those n^(n^n), where -1 indicates that n^n <> n^(n^n) (mod 10).
|
|
1
|
|
|
0, 1, -1, 7, 6, 3125, 656, 43, 6, 89, 0, 611, 6, 53, 6, 380859375, 616, 77, -1, 79, 0, 421, -1, 7, 76, 447265625, 203776, 3, 6, 69, 0, 431, 76, 13, 6, 46875, 136, 17, -1, 59, 0, 641, -1, 7, 6, 828125, 696, 3, 6, 449, 0, 15051, 6, 73, 6, 5234375, 456, 688057
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
COMMENTS
|
The common digits might include leading 0's (such as at n = 5 or n = 43) and they are discarded (in particular, a(0) = 0 indicates that the corresponding zero digit term results in a 0 integer entry).
For n = k*10^c with c >= 1 and k != 0 (mod 10), a(n) = 0 since n^n has (exactly) c*n rightmost 0's.
a(n) is equal to -1 if and only if n == 2 or 18 (mod 20).
|
|
LINKS
|
|
|
FORMULA
|
If n <> 2,18 (mod 20), then a(n) = A000312(n) (mod 10^k), where k is such that n^n == n^(n^n) (mod 10^k) and n^n <> n^(n^n) (mod 10^(k+1)), whereas a(n) = -1 otherwise.
|
|
EXAMPLE
|
For n = 6, 6^6 = 46656 and 6^(6^6) == 8656 (mod 10^4) so there are three common final digits and a(6) = 656.
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|