OFFSET
0,1
COMMENTS
( a(0) + a(1)*6 + a(2)*6^2 + ... )^k = a(0) + a(1)*6 + a(2)*6^2 + ... for each k. Apart from 0 and 1 in base 6 there are only 2 numbers with this property. For the other see A054869.
REFERENCES
V. deGuerre and R. A. Fairbairn, Automorphic numbers, J. Rec. Math., 1 (No. 3, 1968), 173-179.
LINKS
Kenny Lau, Table of n, a(n) for n = 0..9999
V. deGuerre and R. A. Fairbairn, Automorphic numbers, J. Rec. Math., 1 (No. 3, 1968), 173-179.
FORMULA
If A is the 6-adic number, A == 4^(3^n) mod 6^n. - Robert Dawson, Oct 28 2022
EXAMPLE
(a(0) + a(1)*6 + a(2)*6^2 + a(3)*6^3)^2 == (a(0) + a(1)*6 + a(2)*6^2 + a(3)*6^3) mod 6^4 because 1478656 == 1216 (mod 1296).
PROG
(Python)
n=10000; res=pow((3**n+1)//2, n, 3**n)*2**n
for i in range(n):print(i, res%6); res//=6
# Kenny Lau, Jun 09 2018
(PARI) first(p)=Vecrev(digits(lift(Mod(4, 6^p)^3^p), 6)) \\ Charles R Greathouse IV, Nov 01 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Dominici (pl.dm(AT)libero.it), Jun 04 2000
STATUS
approved