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.

A346892 Numbers whose square starts and ends with exactly 3 identical digits.

Original entry on oeis.org

10538, 33462, 99962, 105462, 105538, 149038, 182538, 298038, 333538, 333962, 334038, 334462, 334538, 471538, 471962, 472038, 577462, 577538, 666462, 666538, 666962, 667038, 745038, 745462, 745538, 816538, 881538, 881962, 882038, 942462, 942538, 999538, 1053962, 1054038, 1054538, 1054962
Offset: 1

Views

Author

Bernard Schott, Aug 06 2021

Keywords

Comments

The terminal digits of the square of terms are necessarily 444.
The last 3 digits of terms are either 038, 462, 538 or 962. - Chai Wah Wu, Oct 02 2021

Examples

			10538 is a term because 10538^2 = 111049444
666462 = A348832(1) is a term because 666462^2 = 444171597444, the smallest square that starts with exactly three 4's and ends also with three 4's.
105462 is a term because 105462^2 = 11122233444 (see A079035).
74538 is not a term because 74538^2 = 5555913444 with four starting 5's.
		

Crossrefs

Intersection of A039685 and A346891.
Cf. A346774 (similar, with 2 identical digits).
A348832 is a subsequence.

Programs

  • Mathematica
    Select[Range[10^3, 10^6], (d = IntegerDigits[#^2])[[1]] == d[[2]] == d[[3]] != d[[4]] && d[[-1]] == d[[-2]] == d[[-3]] != d[[-4]] &] (* Amiram Eldar, Aug 06 2021 *)
  • Python
    def ok(n):
        s = str(n*n)
        if len(s) < 4: return False
        return s[0] == s[1] == s[2] != s[3] and s[-1] == s[-2] == s[-3] != s[-4]
    print(list(filter(ok, range(10**6)))) # Michael S. Branicky, Aug 06 2021
    
  • Python
    A346892_list = [1000*n+d for n in range(10**6) for d in [38,462,538,962] if (lambda x:x[0]==x[1]==x[2]!=x[3])(str((1000*n+d)**2))] # Chai Wah Wu, Oct 02 2021

A079036 Squares of these numbers have all their digits occurring in groups of 2 or more, without ending in zero.

Original entry on oeis.org

88, 74162, 105462, 2973962, 31500088, 2366406812, 4715270688, 21186201038, 81445482588, 94245717262, 94277380462, 814454814312, 878141979162, 2579792842738, 3339943529162, 5744665119912, 10490710229162, 10546200105462, 10950910657262, 23577201339312
Offset: 1

Views

Author

Sudipta Das (juitech(AT)vsnl.net), Feb 01 2003

Keywords

Comments

A larger example is given by 939269775530142412^2 = 882227711224444113355445577001177744. The sequence is infinite, since it contains the numbers (10^k+1)*74162 and (10^k+1)*105462 for any k>=13. - Giovanni Resta, Sep 20 2006

Examples

			a(2) = 74162 because 74162^2 = 5500002244 consists of a group of 2 5's, followed by a group of 4 0's, then 2 2's and finally 2 4's.
		

Crossrefs

Extensions

More terms from Giovanni Resta, Sep 20 2006
More terms from Giovanni Resta, Sep 06 2018
Showing 1-2 of 2 results.