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.

A347520 A053392 with duplicates removed.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 210, 32, 33, 34, 35, 36, 37, 38, 39, 310, 311, 43, 44, 45, 46, 47, 48, 49, 410, 411, 412, 54, 55, 56, 57, 58, 59
Offset: 0

Views

Author

Stefan Steinerberger, Sep 04 2021

Keywords

Crossrefs

Cf. A053392.

Programs

  • Mathematica
    a[n_] := Total /@ Transpose[{Most[id = IntegerDigits[n]], Rest[id]}] //
         IntegerDigits // Flatten // FromDigits; DeleteDuplicates[Table[a[n], {n, 0, 1000}]]
  • Python
    # uses A053392
    from collections import OrderedDict
    def afiltern(terms):
        return list(OrderedDict.fromkeys(A053392(k) for k in range(terms)))
    print(afiltern(179)) # Michael S. Branicky, Sep 04 2021