OFFSET
1,3
COMMENTS
The union of "squares mod 10" (= the first 6 terms) and "squares mod 100" (A010461) and "squares mod 1000" (A122986) etc.
The number of terms < 10^k beginning with k=0: 1, 6, 24, 165, 1101, 9306, 79620, 753462, 7198791, 70919559, ... - Robert G. Wilson v, Sep 04 2014
LINKS
Derek Orr, Table of n, a(n) for n = 1..9306
FORMULA
If n is present so is n^2. - Robert G. Wilson v, Sep 04 2014
EXAMPLE
6 is in the sequence because 4^2 = 16 ends in the digit 6.
7 is not in the sequence because no square can end with the digit 7.
MATHEMATICA
mx = 3; t = Union@ Table[ Mod[n^2, 10^mx], {n, 10^mx/2}]; t = Union@ Flatten@ Table[ Mod[t, 10^m], {m, mx}] (* Robert G. Wilson v, Sep 04 2014 *)
PROG
(PARI) a=[]; for(m=1, 3, a=setunion(a, Set(vector(10^m, n, n^2)%10^m))); a
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Mar 03 2014
STATUS
approved