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.

A359346 Reversible pandigital square numbers.

Original entry on oeis.org

1234549876609, 9066789454321, 123452587690084, 123454387666009, 123454987660900, 123456987654400, 123458987664100, 123478988652100, 125688987432100, 146678985432100, 445678965432100, 480096785254321, 900666783454321, 906678945432100, 10223418547690084
Offset: 1

Views

Author

Martin Renner, Dec 27 2022

Keywords

Comments

These are perfect squares containing each digit from 0 to 9 at least once and still remain square numbers (not necessarily of the same length) when reversing the digits.
In 1905, inspired by a question about all pandigital square numbers containing each digit from 0 to 9 exactly once (cf. A036745, A156977), the British mathematician Allan Cunningham (1842-1928) asked for reversible and palindromic pandigital square numbers. In his answer, he gives possible solutions, but actually not the least possible numbers he was asking for in his question.

Examples

			Sequence starts with 1111103^2 = 1234549876609 <~> 9066789454321 = 3011111^2, which is the smallest possible such number.
		

Crossrefs

Programs

  • PARI
    isok(k) = if (issquare(k), my(d=digits(k)); (#Set(d) == 10) && issquare(fromdigits(Vecrev(d)));); \\ Michel Marcus, Dec 31 2022
  • Python
    from math import isqrt
    from itertools import count, islice
    def c(n): return len(set(s:=str(n)))==10 and isqrt(r:=int(s[::-1]))**2==r
    def agen(): yield from (k*k for k in count(10**6) if c(k*k))
    print(list(islice(agen(), 15))) # Michael S. Branicky, Dec 27 2022