proposed
approved
proposed
approved
editing
proposed
nonn,base,easy,changed,look
Leading 0's are not allowed, so a(103) = 9, not 060. - Robert Israel, Nov 05 2020
Robert Israel, <a href="/A184988/b184988.txt">Table of n, a(n) for n = 0..10000</a>
g:= proc(S) S[1] <> "0" and S = StringTools:-Reverse(S) end proc:
f:= proc(n) local S, d, l, i, Q;
S:= sprintf("%d", n^2);
d:= length(S);
for l from d to 1 by -1 do
Q:= select(g, [seq(S[i..i+l-1], i=1..d+1-l)]);
if Q <> [] then return op(sscanf(max(Q), "%d")) fi
od;
end proc:
f(0):= 0:
map(f, [$0..200]); # Robert Israel, Nov 05 2020
approved
editing
_Jonathan Vos Post (jvospost3(AT)gmail.com), _, Mar 27 2011
proposed
approved
There's a slight ambiguity in the definition, given, for example, 20^2 = 400 but "00" is not an integer in OEIS format.
nonn,base,easy,more,changed
0, 1, 4, 9, 6, 5, 6, 9, 6, 8, 1, 121, 44, 9, 9, 22, 6, 9, 4, 6, 2, 4, 44, 484, 9, 7, 6, 676, 9, 8, 8, 9, 9, 4, 9, 11, 22, 9, 9, 444, 5, 6, 8, 7, 9, 9, 202, 11, 22, 4, 4, 5, 6, 7, 9, 9, 5, 313, 9, 33, 8, 6, 7, 44, 969, 9, 22, 6, 44, 6, 7, 9, 5, 8, 9, 7, 6, 77, 929
a(15) = Largest largest palindromic substring of 15^2 = Largest largest palindromic substring of 225 = 22.
allocated for Jonathan Vos PostLargest palindromic substring of n^2.
0, 1, 4, 9, 6, 5, 6, 9, 6, 8, 1, 121, 44, 9, 9, 22, 6, 9, 4, 6, 2, 44, 484
0,3
There's a slight ambiguity in the definition, given, for example, 20^2 = 400 but "00" is not an integer in OEIS format.
a(15) = Largest palindromic substring of 15^2 = Largest palindromic substring of 225 = 22.
allocated
nonn,base,easy,more
Jonathan Vos Post (jvospost3(AT)gmail.com), Mar 27 2011
approved
proposed