login
A383027
a(n) is the number whose reversed n-digit square is the largest among all reversals of n-digit squares.
0
3, 7, 17, 83, 167, 583, 1833, 8167, 10583, 41833, 191833, 489417, 1989417, 9958167, 25041833, 74958167, 125041833, 831989417, 1625041833, 9874958167, 15831989417, 65831989417, 309874958167, 834168010583, 1809874958167, 6809874958167, 29165831989417, 51809874958167, 179165831989417
OFFSET
1,1
EXAMPLE
a(3)=17 because 982 (reverse of 17^2=289) is the largest reverse of all 3-digit squares.
MATHEMATICA
a[n_]:=Module[{s=Ceiling[Sqrt[10^(n-1)]]}, max=IntegerReverse[s^2];
For[k=s, k<=Floor[Sqrt[(10^n-1)]], k++, t=IntegerReverse[k^2];
If[t>max, max=t; s=k]]; s]; Table[a[n], {n, 10}]
CROSSREFS
Cf. A002942.
Sequence in context: A246764 A128343 A106877 * A041949 A222452 A218165
KEYWORD
nonn,base,easy
AUTHOR
Zhining Yang, Apr 13 2025
STATUS
approved