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.

Showing 1-2 of 2 results.

A029775 Squares k^2 whose digits appear in k.

Original entry on oeis.org

0, 1, 100, 10000, 55225, 1000000, 1100401, 1525225, 5522500, 8898289, 22676644, 23348224, 100000000, 107661376, 110040100, 110103049, 110166016, 119311929, 125552025, 152152225, 152522500, 153388225, 155002500, 160022500, 204204100, 219899241, 262602025
Offset: 1

Views

Author

Keywords

Examples

			The digits of 55225 (= 235^2) are a subset of {2,3,5}.
		

Crossrefs

Cf. A029774.

Programs

  • Maple
    filter:= proc(k) convert(convert(k^2,base,10),set) subset convert(convert(k,base,10),set) end proc:
    map(t -> t^2, select(filter, [$0..10^5])); # Robert Israel, Aug 25 2024

Formula

a(n) = A029774(n)^2. - Sean A. Irvine, Mar 04 2020

Extensions

Title improved and more terms from Sean A. Irvine, Mar 04 2020

A258231 Numbers n such that both n and n squared contain exactly the same digits, and n is not divisible by 10.

Original entry on oeis.org

1, 4762, 4832, 10376, 10493, 11205, 12385, 14829, 23506, 24605, 26394, 34196, 36215, 48302, 49827, 68474, 71205, 72576, 74528, 79286, 79603, 79836, 94583, 94867, 96123, 98376, 100469, 100496, 100498, 100499, 100946, 102245, 102953, 103265, 103479, 103756
Offset: 1

Views

Author

Harvey P. Dale, Apr 23 2016

Keywords

Comments

If n is in this sequence, then n*10^k also satisfies the first portion of the definition for all k >= 0.

Examples

			4832 is a term because 4832 squared = 23348224 which contains exactly the same digits as 4832.
		

Crossrefs

Programs

  • Mathematica
    Select[Select[Range[200000],ContainsExactly[IntegerDigits[ #], IntegerDigits[ #^2]]&], !Divisible[#,10]&]
  • Python
    A258231_list = [n for n in range(10**6) if n % 10 and set(str(n)) == set(str(n**2))] # Chai Wah Wu, Apr 23 2016
Showing 1-2 of 2 results.