OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..57 (terms < 8^27)
EXAMPLE
647^2 = 418609 = 146|146|1 in base 8.
21846^2 = 477247716 = 34344|34344 in base 8.
MATHEMATICA
psq[b_, nd_] := Block[{sq={}, r, x}, Do[r = Mod[nd, p]; Do[x = (b^( Floor[nd/p] p) - 1)/(b^p - 1) t b^r + Floor[t/b^(p - r)]; If[ IntegerQ@ Sqrt@ x, AppendTo[ sq, x]], {t, b^(p - 1), b^p - 1}], {p, nd/2}]; sq]; Union @@ (psq[8, #] & /@ Range[11]) (* Giovanni Resta, Aug 01 2018 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Erich Friedman, May 28 2002
EXTENSIONS
Missing a(18) and more terms from Giovanni Resta, Aug 01 2018
STATUS
approved