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

A143789 Lightest finite monotonically increasing sequence obtained by chunking an 18-digit Skolem-Langford integer (see A108116). There are d digits between two d's in the sequence.

Original entry on oeis.org

4, 5, 6, 7, 8, 41, 51, 63, 72, 83, 200
Offset: 1

Views

Author

Dan Hoey and Eric Angelini, Sep 01 2008

Keywords

Comments

"Lightest" --> the weight of such a sequence is the sum of all its terms; "Finite" --> by definition all such sequences are finite; "Monotonically" --> no two adjacent terms in the sequence are the same; "Increasing" --> a(n) < a(n+1); "Chunking" --> cutting in slices. The original Skolem-Langford number is 456784151637283200 [this is a(14565) in "D. Wilson, Complete table of n, a(n) for n = 1..20120", which can be found at A108116] and this integer, properly chunked, produces the sequence]. In the sequence there is no digit between the two 0's, there is one digit between the two 1's, there are two digits between the two 2's,... there are eight digits between the two 8's. This sequence has been computed by Dan Hoey.

Crossrefs

A132291 Base 10 strong Skolem-Langford numbers.

Original entry on oeis.org

12132003, 23121300, 30023121, 31213200, 1214230043, 1312432004, 2342131400, 2412134003, 3004312142, 3400324121, 4002342131, 4131243200, 1213267345006475, 1213275364005746, 1214267540036573, 1214273645300765, 1214275640035763, 1215247365430076
Offset: 1

Views

Author

Eric Angelini, Jun 26 2005, Aug 10 2007

Keywords

Comments

Self-describing numbers: between two digits "d" there are d digits.
a(n) has either 0 or 2 instances of any digit, hence even number of digits.
"Strong" means that every digit from 0 to the largest digit of a(n) must be present in a(n). See A108116 for the "weak" variant without this additional constraint.
Number of digits of a(n) == 0 or 2 (mod 8)
Largest element is a(2820) = 867315136875420024.

Crossrefs

Base 10 Skolem-Langford numbers are in A108116.
Base 10 weaker Skolem-Langford numbers are in A357826.

Programs

  • Python
    def A132291gen(): # SL() is in A108116
      for numd in range(1, 11):
        dset = ("0123456789")[:numd]
        s = [0 for _ in range(2*numd)]
        for an in sorted(SL(dset, s)):
          yield an
    for n, an in enumerate(A132291gen(), start=1):
      print(n, an) # Michael S. Branicky, Dec 14 2020

Extensions

Edited by N. J. A. Sloane, Nov 18 2007

A357826 Base-10 weaker Skolem-Langford numbers.

Original entry on oeis.org

231213, 312132, 12132003, 23121300, 23421314, 30023121, 31213200, 41312432, 1214230043, 1312432004, 2342131400, 2412134003, 3004312142, 3400324121, 4002342131, 4131243200, 4562342536, 4635243265, 5364235246, 5623425364, 6352432654, 6425324635, 14156742352637, 14167345236275
Offset: 1

Views

Author

Marc Morgenegg, Oct 14 2022

Keywords

Comments

Self-describing numbers: between two digits "d" there are d digits.
a(n) has either 0 or 2 instances of any digit, hence even number of digits, and in fact the number of digits of a(n) == 0 or 2 or 6 (mod 8).
"weaker" means that when the smallest digit is x, all digits from x to the largest digit must be present.
The smallest digit x could be any value, but it turns out the biggest is x = 3 with 28 terms in total.
This sequence has 3390 terms. The largest term is 867315136875420024.
See A108116 for the "weak" variant with another constraint, and A132291 for the "strong" variant with more constraints.

Examples

			41312432 is a term since both 4's are separated by four digits, the 1's by one, the 3's by three, the 2's by two. Every digit from 1 to 4 is present.
		

Crossrefs

Cf. base-10 Skolem-Langford numbers: A108116 (weak), A132291 (strong), A339803 (super weak).

Programs

  • Python
    def afull(): # SL() is in A108116
        alst = []
        for d in range(1, 11):
            for b in range(11-d):
                dset = ("0123456789")[b:b+d]
                s = [0 for _ in range(2*d)]
                for an in sorted(SL(dset, s)):
                    alst.append(an)
        return sorted(alst)
    print(afull()[:22]) # Michael S. Branicky, Oct 14 2022

Extensions

More terms from David A. Corneth, Oct 14 2022

A339803 Base-10 super-weak Skolem-Langford numbers.

Original entry on oeis.org

2002, 30003, 131003, 200200, 231213, 300131, 312132, 400004, 420024, 1312132, 1410004, 2002000, 2002002, 2312131, 2312132, 3000300, 4000141, 5000005, 5300035, 12132003, 13100300, 14100141, 14130043, 15100005, 15120025, 20020000, 23121300, 23421314, 25121005, 25320035, 30003000, 30013100, 30023121, 31213200
Offset: 1

Views

Author

Eric Angelini and Carole Dubois, Dec 17 2020

Keywords

Comments

Pick any digit d of a(n): there are exactly d digits between d and the closest duplicate of d (either before or after) inside a(n).
There are infinitely many such terms.
From M. F. Hasler, Dec 19 2020: (Start)
If N is a term of the sequence, then:
(1) Any digit of N must be present at least twice in N (cf. A115853).
(2) N*10^k is also a term of the sequence, for all k >= 2.
(3) The reversal R(N) = A004086(N) is also a term (with leading zeros deleted). (End)

Examples

			a(1) = 2002: in 2002 the closest duplicate of the first 2 is 2 positions away to the right, the closest duplicate of the first 0 is 0 position away to the right, the closest duplicate of the second 0 is 0 position away to the left, the closest duplicate of the second 2 is 2 positions away to the left;
a(2) = 30003: in 30003 the closest duplicate of the first 3 is 3 positions away to the right, the closest duplicate of the first 0 is 0 position away to the right, the closest duplicate of the second 0 is 0 position away (either to the left or to the right), the closest duplicate of the third 0 is 0 position away to the left, the closest duplicate of the second 3 is 3 positions away to the left;
a(13) = 2312131: if you pick any digit 1, the closest duplicate of this 1 is 1 position away (either to the left or to the right), if you pick any 2, the closest duplicate of this 2 is 2 positions away, if you pick any 3, the closest duplicate of this 3 is 3 positions away, etc.
		

Crossrefs

Cf. base-10 Skolem-Langford numbers: A108116 (weak), A357826 (weaker), A132291 (strong).
Cf. A339611 (same idea turned into a different sequence).
Cf. A115853.

Programs

  • PARI
    is_A339803(n)={!for(i=1,#n=digits(n), (i>n[i]+1 && n[i-n[i]-1]==n[i])||(i+n[i]<#n && n[i+n[i]+1]==n[i])||return; for(j=max(i-n[i],1), min(i+n[i],#n), n[j]==n[i] && j!=i && return))} \\ M. F. Hasler, Dec 19 2020
  • Python
    def nn(ti, t, s):
      li = s.rfind(t, 0, max(ti, 0))
      ri = s.find(t, min(ti+1, len(s)), len(s))
      if li==-1: li = -11
      if ri==-1: ri = len(s)+11
      return min(ti-li, ri-ti) - 1
    def ok(n):
      strn = str(n)
      if any(strn.count(c)==1 for c in set(strn)): return False
      for i, c in enumerate(strn):
        if nn(i, c, strn) != int(c): return False
      return True
    for n in range(6*10**6):
      if ok(n): print(n, end=", ") # Michael S. Branicky, Dec 17 2020
    

A307748 Weak Skolem-Langford numbers that are prime.

Original entry on oeis.org

2412134003, 2742300437, 141753400357, 171450034753, 191453004359, 246200431613, 267240036473, 293251310059, 386732002687, 394530041519, 426724001617, 451714350037, 460054236253, 463724326007, 491514300539, 497514100579, 497524121579, 592632513169, 642732463007, 683002362181, 685200265181
Offset: 1

Views

Author

Lekraj Beedassy, Apr 26 2019

Keywords

Comments

Prime terms of A108116.
Largest element is a(411) = 973006384792642181. - Jinyuan Wang, Jul 23 2019

Crossrefs

Programs

  • Mathematica
    Select[Last /@ Cases[ Import[ "https://oeis.org/A108116/b108116.txt", "Table"], {A108116%20b-file,%20_Giovanni%20Resta">Integer, _Integer}], PrimeQ] (* based on A108116 b-file, _Giovanni Resta, Jul 03 2019 *)
Showing 1-5 of 5 results.