OFFSET
0,2
COMMENTS
From Michael De Vlieger, Nov 12 2014: (Start)
The next term contains a nondecimal digit: see the link below for an expanded table of squares with the nondecimal digits.
Perfect squares in base 16 must end in one of {0, 1, 4, 9}, similar to perfect squares in base 12.
As n increases, a(n) cycles through the end digits thus: {0, 1, 4, 9, 0, 9, 4, 1}.
(End)
REFERENCES
GCHQ, The GCHQ Puzzle Book, Penguin, 2016. See pages 108 and 300.
EXAMPLE
a(8) = 8 * 8 = decimal 64 = 4 * 16 + 0 = "40".
a(15) = 15 * 15 = decimal 225 = 14 * 16 + 1. Using the digit "e" to represent digit-14, a(15) = "e1".
MATHEMATICA
a004631[n_Integer] := BaseForm[n^2, 16]; a004631/@Range[1024] (* Michael De Vlieger, Nov 12 2014 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
STATUS
approved