OFFSET
1,1
COMMENTS
Subsequence of A065807. - Zak Seidov, Mar 23 2012
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..1000
EXAMPLE
15^2 = 225 ends with 25 = 5^2.
MAPLE
q:= n-> (s-> ormap(x-> (t-> t>0 and issqr(t))(parse(x))
, [s[i..-1]$i=2..length(s)]))(""||n):
select(q, [i^2$i=1..100])[]; # Alois P. Heinz, Mar 16 2020
MATHEMATICA
ds[n_] := DeleteCases[NestWhileList[FromDigits[Rest[IntegerDigits[#]]] &, n, # > 9 &], 0]; Select[Range[4, 65]^2, Or @@ IntegerQ /@ Sqrt[Rest[ds[#]]] &] (* Jayanta Basu, Jul 10 2013 *)
PROG
(PARI) issqend(n) = my(p=10, q); for(k=1, #Str(n)-1, if ((q=(n % p)) && issquare(q), return (1)); p*=10);
isok(n) = issquare(n) && issqend(n); \\ Michel Marcus, Mar 17 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved