OFFSET
1,1
LINKS
Ray Chandler, Table of n, a(n) for n = 1..1000 (First 500 terms from Alois P. Heinz)
EXAMPLE
3697 = 25041_6 and 3697^2 = 1204540521_6.
MAPLE
p:= n-> add(x^i, i=convert(n, base, 6)):
a:= proc(n) option remember; local k;
for k from 1+`if`(n=1, 0, a(n-1))
while p(k)*2<>p(k^2) do od; k
end:
seq(a(n), n=1..50); # Alois P. Heinz, May 10 2015
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Erich Friedman, Jun 16 2001
EXTENSIONS
Offset changed to 1 by Alois P. Heinz, May 10 2015
STATUS
approved