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.

A108571 Any digit d in the sequence says: "I am part of an integer in which you'll find d digits d".

Original entry on oeis.org

1, 22, 122, 212, 221, 333, 1333, 3133, 3313, 3331, 4444, 14444, 22333, 23233, 23323, 23332, 32233, 32323, 32332, 33223, 33232, 33322, 41444, 44144, 44414, 44441, 55555, 122333, 123233, 123323, 123332, 132233, 132323, 132332, 133223, 133232, 133322, 155555
Offset: 1

Views

Author

Eric Angelini, Jul 05 2005

Keywords

Comments

The sequence is finite. Last term: 999999999888888887777777666666555554444333221.
Number of terms is 66712890763701234740813164553708284. - Zak Seidov, Jan 02 2007
Fixed points of A139337. - Reinhard Zumkeller, Apr 14 2008
Sequence contains squares (A181392) and cubes (A225886^3) but no higher powers, see Comments in A181392. - Giovanni Resta, May 19 2013

Examples

			23323 is in the sequence because it has two 2's and three 3's.
23332 is in the sequence because it has two 2's and three 3's.
23333 is not in the sequence because it has only one 2 and four 3's.
		

Crossrefs

Cf. A127007, A139337, A078348 (subsequence of primes), A181392, A225886.

Programs

  • PARI
    is(n)={ vecmin(n=vecsort(digits(n))) && #n==normlp(Set(n),1) && !for(i=1,#n, n[i+n[i]-1]==n[i] || return; i+n[i]>#n || n[i+n[i]]>n[i] || return; n[i]>1 && i+=n[i]-1)} \\ M. F. Hasler, Sep 22 2014
    
  • Python
    # see link for a function that directly generates terms
    def ok(n): s = str(n); return all(s.count(d) == int(d) for d in set(s))
    def aupto(limit): return [m for m in range(1, limit+1) if ok(m)]
    print(aupto(155555)) # Michael S. Branicky, Jan 22 2021

A165411 Primes p such that each of p's digits d appears consecutively exactly d times and p contains each nonzero digit up to its maximum digit.

Original entry on oeis.org

223331, 122555554444333, 224444333555551, 224444555553331, 225555544441333, 333555554444221, 555552233344441, 555552244441333, 555554444221333, 122444455555666666333, 122555554444666666333, 144446666662255555333
Offset: 1

Views

Author

Rick L. Shepherd, Sep 17 2009

Keywords

Comments

This sequence is a subsequence of A140057, A078348, and A108571. There are 129 terms; the largest is 7777777666666444455555223331. As 1, 122, and 221 are not prime and any such numbers whose maximum digit is 4, 8, or 9 are divisible by 3, all terms of the sequence have either 6 (1 term), 15 (8 terms), 21 (24 terms), or 28 (96 terms) decimal digits (=triangular numbers A000217(n) for n=3,5,6,7, respectively).
None of the terms have nondecreasing or nonincreasing decimal digits. - Rick L. Shepherd, Feb 23 2013

Examples

			1333444455555226666667777777 is a term because it is a prime meeting the criteria: It contains all digits 1 through 7, its maximum, each appearing in a single run of length equal to the value of the digit.
		

Crossrefs

Showing 1-2 of 2 results.