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.

A069707 Squares with property that swapping first and last digits also gives a square.

Original entry on oeis.org

1, 4, 9, 100, 121, 144, 169, 400, 441, 484, 676, 900, 961, 1521, 1681, 1764, 4624, 4761, 5625, 9409, 10000, 10201, 10404, 10609, 11881, 12321, 14161, 14641, 16641, 17161, 19321, 19881, 40000, 40401, 40804, 41209, 43264, 44944, 47524, 49284
Offset: 1

Views

Author

Amarnath Murthy, Apr 08 2002

Keywords

Examples

			1764 and 4761 both are squares hence both are members.
		

Crossrefs

Programs

  • Mathematica
    Do[t = IntegerDigits[n^2]; u = t; u[[1]] = t[[ -1]]; u[[ -1]] = t[[1]]; t = FromDigits[u]; If[ IntegerQ[ Sqrt[t]], Print[n^2]], {n, 1, 300}]
    sfldQ[n_]:=Module[{idn=IntegerDigits[n]},IntegerQ[Sqrt[FromDigits[Join[ {idn[[-1]]},Most[ Rest[idn]],{idn[[1]]}]]]]]; Join[{1,4,9},Select[ Range[10,250]^2,sfldQ]] (* Harvey P. Dale, Oct 13 2020 *)

Extensions

Edited and extended by Robert G. Wilson v
Edited by N. J. A. Sloane, Jan 20 2009