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.

A100844 Smallest m greater than n such that m^2 contains n^2 in its decimal representation.

Original entry on oeis.org

10, 4, 7, 7, 13, 15, 19, 43, 42, 41, 90, 110, 38, 130, 140, 35, 160, 170, 57, 190, 80, 210, 220, 227, 240, 75, 260, 223, 279, 196, 70, 219, 320, 330, 340, 285, 360, 370, 380, 390, 400, 410, 343, 136, 440, 205, 460, 470, 480, 490, 150, 510, 520, 530, 540, 305, 481
Offset: 0

Views

Author

Reinhard Zumkeller, Jan 14 2005

Keywords

Comments

a(n) <= 10*n; a(A102576(n)) < 10*A102576(n), a(A102577(n)) = 10*A102577(n). - Reinhard Zumkeller, Jan 15 2005

Examples

			n=3: (3+1)^2 = 16, (3+2)^2 = 25 and (3+3)^2 = 36 do not contain 9 = 3^2, but 7^2 = 49 contains 9, therefore a(3) = 7.
		

Crossrefs

Programs

  • Mathematica
    p = -1; s = {}; m = 100; Do[p = p + 1; idp = IntegerDigits[p^2]; le = Length[idp]; q = p; Label[1]; q = q + 1; par = Partition[IntegerDigits[q^2], le, 1]; If[MemberQ[par, idp], AppendTo[s, q]; Goto[2], Goto[1]]; Label[2], {m}]; s (* Zak Seidov, Dec 19 2014 *)
    f[n_] := Block[{sidn = ToString[n^2], k = n + 1}, While[ StringPosition[ ToString[k^2], sidn] == {}, k++]; k]; Array[f, 60, 0] (* Robert G. Wilson v, Dec 19 2014 *)
  • Python
    def a(n):
        s, m = str(n*n), n+1
        while s not in str(m*m): m += 1
        return m
    print([a(n) for n in range(57)]) # Michael S. Branicky, Oct 04 2021

A102577 Numbers m such that A100844(m) = 10*m.

Original entry on oeis.org

0, 11, 13, 14, 16, 17, 19, 21, 22, 24, 26, 32, 33, 34, 36, 37, 38, 39, 40, 41, 44, 46, 47, 48, 49, 51, 52, 53, 54, 58, 59, 61, 62, 63, 64, 66, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 86, 87, 88, 89, 91, 92, 93, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 15 2005

Keywords

Comments

Complement of A102576.
Showing 1-2 of 2 results.