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.

A114212 Generalized Gould sequence.

Original entry on oeis.org

1, 2, 3, 4, 4, 4, 6, 8, 6, 4, 6, 8, 8, 8, 12, 16, 10, 4, 6, 8, 8, 8, 12, 16, 12, 8, 12, 16, 16, 16, 24, 32, 18, 4, 6, 8, 8, 8, 12, 16, 12, 8, 12, 16, 16, 16, 24, 32, 20, 8, 12, 16, 16, 16, 24, 32, 24, 16, 24, 32, 32, 32, 48, 64, 34, 4, 6, 8, 8, 8, 12, 16, 12, 8, 12, 16, 16, 16, 24, 32, 20, 8
Offset: 0

Views

Author

Paul Barry, Nov 17 2005

Keywords

Comments

Row sums of A114213.

Examples

			From _Omar E. Pol_, Jun 09 2009: (Start)
Triangle begins:
  1;
  2,3;
  4,4,4,6;
  8,6,4,6,8,8,8,12;
  16,10,4,6,8,8,8,12,16,12,8,12,16,16,16,24;
  32,18,4,6,8,8,8,12,16,12,8,12,16,16,16,24,32,20,8,12,16,16,16,24,32,24,...
Also, we can write the initial term followed by a triangle:
  1;
  2;
  3,4;
  4,4,6,8;
  6,4,6,8,8,8,12,16;
  10,4,6,8,8,8,12,16,12,8,12,16,16,16,24,32;
  18,4,6,8,8,8,12,16,12,8,12,16,16,16,24,32,20,8,12,16,16,16,24,32,24,16,...
Also, we can write first two terms followed by a triangle:
  1;
  2;
  3;
  4,4;
  4,6,8,6;
  4,6,8,8,8,12,16,10;
  4,6,8,8,8,12,16,12,8,12,16,16,16,24,32,18;
  4,6,8,8,8,12,16,12,8,12,16,16,16,24,32,20,8,12,16,16,16,24,32,24,16,24,32,...
(End)
		

Crossrefs

Cf. A000079. [Omar E. Pol, Jun 09 2009]

Programs

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

Formula

a(n) = Sum_{k=0..n} (Sum_{j=0..n-k} C(k, j)*C(n-k, j)*((1 + (-1)^k)/2) mod 2).
a(n) = A001316(n) + A001316((n-2)/2)*(1 + (-1)^n)/2.