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.

A257368 Numbers n such that the decimal expansions of both n and n^2 have 2 as smallest digit and 8 as largest digit.

Original entry on oeis.org

278, 528, 582, 826, 2385, 2585, 2868, 2872, 2875, 2878, 2885, 4782, 4832, 4872, 5278, 5328, 6872, 7238, 7258, 7268, 7582, 8232, 8266, 8275, 8278, 8284, 8522, 8524, 8528, 8628, 8732, 8822, 23385, 23628, 23782, 23826, 25582, 25668, 25785, 25856, 26238, 26878
Offset: 1

Views

Author

Felix Fröhlich, Apr 25 2015

Keywords

Crossrefs

Programs

  • Mathematica
    fQ[n_] := Block[{d = DigitCount@ n}, Plus @@ Prepend[Take[d, -2], First@ d] == 0 && d[[2]] > 0 && d[[8]] > 0]; Select[Range@ 27000, fQ@ # && fQ[#^2] &] (* Michael De Vlieger, Apr 27 2015 *)
  • PARI
    is(n) = vecmin(digits(n))==2 && vecmin(digits(n^2))==2 && vecmax(digits(n))==8 && vecmax(digits(n^2))==8