A378857 a(n) is the smallest k > 1 such that n^k starts and ends with n, or -1 if there is no such k.
2, 21, 41, 11, 24, 10, 33, 73, 153, -1, 171, 241, 361, -1, -1, 6, 461, -1, 471, -1, 12086, -1, 1281, 51, 94, -1, 1181, 701, 1091, -1, 231, 197, 5781, -1, -1, 161, 221, -1, 1231, -1, 236, -1, 61, 1451, -1, -1, 861, 13381, 143, -1, 107, 501, 2761, -1, -1, 136
Offset: 1
Examples
2^21 = 2097152 is the smallest power of 2 that starts and ends with 2, so a(2) = 21.
Comments