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-6 of 6 results.

A277948 Squares whose largest decimal digit is 4.

Original entry on oeis.org

4, 144, 324, 400, 441, 1024, 1444, 2304, 2401, 10404, 14400, 23104, 32041, 32400, 33124, 40000, 40401, 44100, 101124, 102400, 103041, 110224, 114244, 121104, 131044, 144400, 203401, 204304, 213444, 230400, 232324, 240100, 300304, 301401, 421201, 1004004
Offset: 1

Views

Author

Colin Barker, Nov 05 2016

Keywords

Comments

A subsequence of A158082, in turn a subsequence of A000290.

Crossrefs

Cf. A000290 (the squares).
Cf. A277961 (square roots of these terms).
Cf. A277946, A277947, A295015, ..., A295019 (analog for largest digit = 2, 3, 5, ..., 9).
Cf. A058412, A058411, ..., A058474 and A136808, A136809, ..., A137147 for other restrictions on digits of squares.

Programs

  • Magma
    [n^2: n in [1..1000000] | Maximum(Intseq(n^2)) eq 4]; // Vincenzo Librandi, Nov 06 2016
  • Mathematica
    Select[Range[1100]^2,Max[IntegerDigits[#]]==4&] (* Harvey P. Dale, Jul 01 2017 *)
  • PARI
    L=List(); for(n=1, 10000, if(vecmax(digits(n^2))==4, listput(L, n^2))); Vec(L)
    

Formula

a(n) = A277961(n)^2. - M. F. Hasler, Nov 12 2017
Intersection of A000290 and A277966. - M. F. Hasler, Nov 15 2017

A295005 Numbers n such that the largest digit of n^2 is 5.

Original entry on oeis.org

5, 15, 35, 39, 45, 50, 55, 65, 71, 105, 112, 115, 145, 150, 155, 185, 188, 205, 211, 229, 235, 335, 350, 365, 368, 388, 389, 390, 450, 461, 485, 495, 500, 501, 502, 505, 550, 579, 585, 595, 635, 650, 652, 665, 671, 710, 711, 715, 718, 729, 735, 745, 1005, 1015, 1050
Offset: 1

Views

Author

M. F. Hasler, Nov 12 2017

Keywords

Examples

			39 is in this sequence because 39^2 = 1521 has 5 as largest digit.
		

Crossrefs

Cf. A295015 (the corresponding squares), A277959 .. A277961 (same for digit 2 .. 4), A295006 .. A295009 (same for digit 6 .. 9).
Cf. A000290 (the squares).

Programs

  • Mathematica
    Select[Sqrt[ #]&/@(FromDigits/@Select[Tuples[ Range[ 0,5],7],Max[#] == 5&]),IntegerQ] (* Harvey P. Dale, Sep 23 2021 *)
  • PARI
    select( is_A295005(n)=n&&vecmax(digits(n^2))==5 , [0..999]) \\ The "n&&" avoids an error message for n=0.
    
  • Python
    def aupto(limit):
      alst = []
      for k in range(1, limit+1):
        if max(str(k*k)) == "5": alst.append(k)
      return alst
    print(aupto(1050)) # Michael S. Branicky, May 15 2021

Formula

a(n) = sqrt(A295015(n)), where sqrt = A000196 or A000194 or A003059.

A295019 Squares whose largest digit is 9.

Original entry on oeis.org

9, 49, 169, 196, 289, 529, 729, 900, 961, 1089, 1296, 1369, 1849, 1936, 2209, 2809, 2916, 3249, 3969, 4096, 4489, 4900, 5329, 5929, 6889, 7396, 7569, 7921, 8649, 9025, 9216, 9409, 9604, 9801, 10609, 11449, 12769, 12996, 13689, 13924, 15129, 16129, 16900, 17689, 17956, 18496, 18769
Offset: 1

Views

Author

M. F. Hasler, Nov 12 2017

Keywords

Crossrefs

Cf. A295009 (square roots of the terms), A277946 - A277948 (same for digit 2..4), A295015 - A295018 (same for digit 5..8).
Cf. A000290 (the squares).

Programs

  • Mathematica
    Select[Range[150]^2,Max[IntegerDigits[#]]==9&] (* Harvey P. Dale, Oct 27 2019 *)
  • PARI
    is_A295019(n)=issquare(n)&&n&&vecmax(digits(n))==9 \\ "&&n" avoids an error message for n=0.

Formula

a(n) = A295009(n)^2.

A295016 Squares whose largest digit is 6.

Original entry on oeis.org

16, 36, 64, 256, 361, 625, 1156, 1600, 2116, 2601, 3136, 3364, 3600, 4356, 4624, 5625, 6241, 6400, 6561, 11236, 11664, 13456, 14161, 14641, 15625, 16641, 20164, 21316, 24336, 25600, 26244, 30625, 36100, 41616, 42436, 43264, 46225, 46656, 50625, 53361, 56644, 60025, 60516, 61504
Offset: 1

Views

Author

M. F. Hasler, Nov 12 2017

Keywords

Crossrefs

Cf. A295006 (square roots of the terms); A277946, A277947, A277948, A295015 .. A295019 (analog for digits 2 through 9), A295021 (analog for cubes).
Cf. A000290 (the squares).

Programs

  • Mathematica
    Select[Range[250]^2,Max[IntegerDigits[#]]==6&] (* Harvey P. Dale, Jun 14 2025 *)
  • PARI
    is_A295016(n)=issquare(n)&&n&&vecmax(digits(n))==6 \\ The "n&&" avoids an error message for n = 0.

Formula

a(n) = A295006(n)^2.

A295018 Squares whose largest digit is 8.

Original entry on oeis.org

81, 484, 784, 841, 1681, 3481, 3844, 5184, 6084, 8100, 8281, 8464, 8836, 10816, 11881, 14884, 15876, 16384, 18225, 22801, 25281, 28224, 28561, 31684, 33856, 36481, 36864, 38025, 38416, 40804, 43681, 48400, 48841, 53824, 58081, 58564, 67081, 68121, 68644, 71824, 77284, 77841, 78400
Offset: 1

Views

Author

M. F. Hasler, Nov 12 2017

Keywords

Crossrefs

Cf. A295008 (square roots of the terms), A277946 - A277948 (same for digit 2..4), A295015 - A295019 (same for digit 5..9).
Cf. A000290 (the squares).

Programs

  • Maple
    Res:= NULL: count:= 0:
    for n from 1 while count < 50 do
      if max(convert(n^2,base,10))=8 then
        count:= count+1; Res:= Res, n^2;
      fi
    od:
    Res; # Robert Israel, Jul 21 2019
  • Mathematica
    Select[Range[300]^2,Max[IntegerDigits[#]]==8&] (* Harvey P. Dale, Jul 08 2020 *)
  • PARI
    is_A295018(n)=issquare(n)&&n&&vecmax(digits(n))==8 \\ "&&n" avoids an error message for n=0.

Formula

a(n) = A295008(n)^2.

A295017 Squares whose largest digit is 7.

Original entry on oeis.org

576, 676, 1764, 2704, 3721, 4761, 5476, 5776, 6724, 7056, 7225, 7744, 15376, 17161, 17424, 20736, 23716, 27225, 27556, 30276, 32761, 35721, 37636, 47524, 50176, 51076, 54756, 57121, 57600, 67600, 70225, 70756, 72361, 73441, 75076, 75625, 76176, 101761, 106276, 126736, 137641, 141376
Offset: 1

Views

Author

M. F. Hasler, Nov 12 2017

Keywords

Crossrefs

Cf. A295007 (square roots of the terms), A277946 .. A277948 (same for digit 2 .. 4), A295015 .. A295019 (same for digit 5 .. 9), A295022 (same for cubes).
Cf. A000290 (the squares).

Programs

  • Mathematica
    Select[Range[1000]^2,Max[IntegerDigits[#]]==7&] (* Harvey P. Dale, Dec 15 2024 *)
  • PARI
    is_A295017(n)=issquare(n)&&n&&vecmax(digits(n))==7 \\ The "n&&" avoids an error message for n=0.

Formula

a(n) = A295007(n)^2.
Showing 1-6 of 6 results.