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.

A328782 Integers k such that k and k^2 contain the same number > 0 of digits zero in their decimal expansion.

Original entry on oeis.org

0, 104, 105, 203, 205, 302, 303, 305, 402, 403, 405, 504, 505, 506, 507, 508, 509, 601, 602, 603, 605, 609, 701, 702, 703, 705, 708, 709, 801, 802, 803, 805, 901, 902, 903, 905, 906, 1006, 1007, 1008, 1009, 1011, 1012, 1013, 1014, 1016, 1017, 1018, 1019, 1021
Offset: 1

Views

Author

Bernard Schott, Oct 28 2019

Keywords

Examples

			703 and 494209 = 703^2 both have one zero digit in their decimal expansion.
		

Crossrefs

Programs

  • Maple
    f:= n-> numboccur(0, convert(n, base, 10)):
    q:= n-> ((x, y)-> x>0 and x=y)(f(n), f(n^2)):
    select(q, [$0..1030])[];  # Alois P. Heinz, Oct 28 2019
  • Mathematica
    Select[Range[0, 1100], DigitCount[#, 10, 0] == DigitCount[#^2, 10, 0] > 0 &] (* Giovanni Resta, Feb 27 2020 *)

Extensions

More terms from Alois P. Heinz, Oct 28 2019