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.

A377925 Records in A228407.

Original entry on oeis.org

0, 11, 100, 101, 103, 110, 114, 120, 201, 210, 1000, 1003, 1007, 1008, 1020, 1029, 1030, 1040, 1047, 1048, 1082, 1208, 1280, 1802, 1820, 2018, 2081, 2108, 2180, 2801, 2810, 8012, 8021, 8102, 8120, 8201, 8210, 10002, 10004, 10007, 10020, 10060, 10080, 10081, 10100, 10105, 10113, 10304, 10502, 10520, 11125, 11152, 11215, 11251, 11512, 11521, 12005, 12050, 12115, 12151
Offset: 1

Views

Author

N. J. A. Sloane, Dec 14 2024

Keywords

Comments

First 48 terms were computed by Robert G. Wilson v, Dec 31 2013: see Comments in A228407.

Crossrefs

Programs

  • Python
    from itertools import islice
    from collections import Counter
    def A377925_gen(): # generator of terms
        yield from (0,11)
        l, s, b, c = Counter('11'), 1, {11}, 11
        while True:
            i = s
            while True:
                if i not in b:
                    li, o = Counter(str(i)), 0
                    for d in (l+li).values():
                        if d % 2:
                            if o > 0:
                                break
                            o += 1
                    else:
                        if i>c:
                            yield (c:=i)
                        l = li
                        b.add(i)
                        while s in b:
                            b.remove(s)
                            s += 1
                        break
                i += 1
    A377925_list = list(islice(A377925_gen(),40)) # Chai Wah Wu, Dec 14 2024