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.

A036110 A summarize Fibonacci sequence: summarize the previous two terms!.

Original entry on oeis.org

2, 2, 22, 32, 1332, 332211, 433231, 14533231, 1524632231, 162524534241, 263544336241, 363564435231, 463554733221, 17364544733221, 37263554634231, 37363554734231, 37364544933221, 1937263554933221, 3927263544835231, 391827264534836231, 293827363544836231
Offset: 0

Views

Author

Keywords

Comments

From the 26th term the sequence gets into a cycle of 46.

Crossrefs

Programs

  • Python
    def aupton(nn):
      alst = [2, 2]
      for n in range(2, nn+1):
        prev2, anstr = sorted(str(alst[-2]) + str(alst[-1])), ""
        for d in sorted(set(prev2), reverse=True):
          anstr += str(prev2.count(d)) + d
        alst.append(int(anstr))
      return alst
    print(aupton(20)) # Michael S. Branicky, Feb 02 2021