OFFSET
1,3
LINKS
Eric M. Schmidt, Table of n, a(n) for n = 1..1000
EXAMPLE
From A201821:
a(3) = (3)_6 = 3 since 3^2 = 9 = (13)_6 ends with 3 in base 6.
a(4) = (4)_6 = 4 since 4^2 = 16 = (24)_6 ends with 4 in base 6.
a(5) = (13)_6 = 9 since 9^2 = 81 = (213)_6 ends with 13 in base 6.
PROG
(Sage) # See A003226.
(PARI) isok(n) = ((n^2-n) % 6^(#digits(n, 6))) == 0; \\ Michel Marcus, Mar 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric M. Schmidt, Feb 09 2014
STATUS
approved