cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A383027 a(n) is the number whose reversed n-digit square is the largest among all reversals of n-digit squares.

Original entry on oeis.org

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

Views

Author

Zhining Yang, Apr 13 2025

Keywords

Examples

			a(3)=17 because 982 (reverse of 17^2=289) is the largest reverse of all 3-digit squares.
		

Crossrefs

Cf. A002942.

Programs

  • 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}]