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.

A215450 a(0)=0, a(1)=1, a(n) = a(n-1) + (Sum_{i=0..n-1} a(i)) mod n.

Original entry on oeis.org

0, 1, 2, 2, 3, 6, 8, 9, 16, 18, 23, 23, 26, 33, 35, 45, 55, 71, 87, 94, 111, 128, 132, 140, 152, 172, 186, 198, 210, 224, 244, 249, 264, 294, 325, 341, 344, 360, 393, 425, 434, 454, 491, 525, 530, 538, 541, 573, 604, 649, 687, 687, 733, 749, 785, 804, 805, 826, 870, 904
Offset: 0

Views

Author

Alex Ratushnyak, Aug 10 2012

Keywords

Crossrefs

Cf. A001519 is essentially equal to: a(0)=0, a(1)=1, a(n) = a(n-1) + Sum_{i=0..n-1} a(i).
Cf. A182444.

Programs

  • Python
    a = [0]*77
    a[1]=1
    sum = a[0]+a[1]
    for n in range(2,77):
        print(a[n-2], end=', ')
        a[n] = a[n-1] + sum % n
        sum += a[n]

Formula

a(0)=0, a(1)=1, a(n) = a(n-1) + (a(0)+...+a(n-1)) mod n.