OFFSET
1,3
COMMENTS
If k is in the sequence then so is 10*k. - David A. Corneth, Sep 29 2019
No term starts with the digit 2. - Chai Wah Wu, Apr 04 2023
LINKS
David A. Corneth, Table of n, a(n) for n = 1..2361 (terms < 10^15; first 485 terms from Charles R Greathouse IV)
EXAMPLE
5^2 = 25, whose first digit is 5, hence 5 is a term of the sequence.
11^2 = 121, whose first and third digit are (1, 1), hence 11 is a term of the sequence.
756^2 = 571536, whose digits in odd positions - starting from the least significant one - are (7, 5, 6), hence 756 is a term of the sequence.
MATHEMATICA
Select[Range[0, 13000], Reverse@ #[[-Range[1, Length@ #, 2]]] &@ IntegerDigits[#^2] === IntegerDigits[#] &] (* Michael De Vlieger, Oct 06 2019 *)
PROG
(PARI) isok(n) = my(d=Vecrev(digits(n^2))); fromdigits(Vecrev(vector((#d+1)\2, k, d[2*k-1]))) == n; \\ Michel Marcus, Oct 01 2019
(Python)
def ok(n): s = str(n*n); return n == int("".join(s[1-len(s)%2::2]))
print(list(filter(ok, range(13000)))) # Michael S. Branicky, Sep 10 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Riccardo Pietro Giovambattista Mazzei and Matteo Albanese, Sep 28 2019
STATUS
approved