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.

A067770 a(n) = Catalan(n) mod (n+2).

Original entry on oeis.org

1, 1, 2, 0, 2, 0, 4, 6, 0, 0, 8, 0, 0, 10, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 20, 0, 16, 22, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 56, 0, 0, 58, 0, 0
Offset: 0

Views

Author

Claude Lenormand (claude.lenormand(AT)free.fr), Feb 05 2002

Keywords

Crossrefs

Programs

  • Maple
    a:= n-> binomial(2*n, n)/(n+1) mod (n+2):
    seq(a(n), n=0..88);
  • Mathematica
    Table[Mod[CatalanNumber[n],n+2],{n,0,90}] (* Harvey P. Dale, Mar 06 2025 *)
  • PARI
    for(k=0,80,print1(binomial(2*k,k)/(k+1)%(k+2),", ")) \\ Hugo Pfoertner, Jul 16 2020
    
  • Python
    A067770_list, c = [1,1], 1
    for n in range(2,10001):
        c = c*(4*n-2)//(n+1)
        A067770_list.append(c % (n+2)) # Chai Wah Wu, Jul 16 2020

Extensions

Name corrected by Hugo Pfoertner, Jul 16 2020