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.

A168294 Carryless product n times n+1.

Original entry on oeis.org

0, 2, 6, 2, 0, 0, 2, 6, 2, 90, 110, 132, 156, 172, 190, 110, 132, 156, 172, 280, 420, 462, 406, 442, 480, 420, 462, 406, 442, 670, 930, 992, 956, 912, 970, 930, 992, 956, 912, 260, 640, 622, 606, 682, 660, 640, 622, 606, 682, 50, 550, 552, 556, 552, 550, 550, 552, 556, 552
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Python
    def A168294(n):
        s, t = [int(d) for d in str(n)], [int(d) for d in str(n+1)]
        l, m = len(s), len(t)
        u = [0]*(l+m-1)
        for i in range(l):
            for j in range(m):
                u[i+j] = (u[i+j] + s[i]*t[j]) % 10
        return int("".join(str(d) for d in u)) # Chai Wah Wu, Jun 30 2020