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.

A114214 Diagonal sums of number triangle A114213.

Original entry on oeis.org

1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 4, 4, 5, 5, 7, 7, 8, 8, 7, 7, 7, 7, 8, 8, 7, 7, 5, 5, 6, 6, 9, 9, 11, 11, 10, 10, 11, 11, 13, 13, 12, 12, 9, 9, 9, 9, 12, 12, 13, 13, 11, 11, 10, 10, 11, 11, 9, 9, 6, 6, 7, 7, 11, 11, 14, 14, 13, 13, 15, 15, 18, 18, 17, 17, 13, 13, 14, 14, 19, 19, 21
Offset: 0

Views

Author

Paul Barry, Nov 17 2005

Keywords

Comments

Conjecture: a(n) = A007306(floor(n/2)+1). - Georg Fischer, Nov 28 2022

Crossrefs

Programs

  • PARI
    a(n) = sum(k=0, n\2, sum(j=0, n-2*k, binomial(k, j)*binomial(n-2*k, j)*(1+(-1)^j)/2) % 2); \\ Michel Marcus, Jun 06 2021

Formula

a(n) = Sum_{k=0..floor(n/2)} mod(Sum_{j=0..n-2k} C(k, j) C(n-2k, j) (1+(-1)^j)/2, 2). (corrected by Jeffrey Shallit, May 18 2016)