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.

A206424 The number of 1's in row n of Pascal's Triangle (mod 3).

Original entry on oeis.org

1, 2, 2, 2, 4, 4, 2, 4, 5, 2, 4, 4, 4, 8, 8, 4, 8, 10, 2, 4, 5, 4, 8, 10, 5, 10, 14, 2, 4, 4, 4, 8, 8, 4, 8, 10, 4, 8, 8, 8, 16, 16, 8, 16, 20, 4, 8, 10, 8, 16, 20, 10, 20, 28, 2, 4, 5, 4, 8, 10, 5, 10, 14, 4, 8, 10, 8, 16, 20, 10, 20, 28, 5, 10, 14, 10, 20, 28
Offset: 0

Views

Author

Marcus Jaiclin, Feb 07 2012

Keywords

Comments

A006047(n) = a(n) + A227428(n).
a(n) = n + 1 - A062296(n) - A227428(n); number of ones in row n of triangle A083093. - Reinhard Zumkeller, Jul 11 2013

Examples

			Rows 0-8 of Pascal's Triangle (mod 3) are:
  1                   So a(0) = 1
  1 1                 So a(1) = 2
  1 2 1               So a(2) = 2
  1 0 0 1                 .
  1 1 0 1 1               .
  1 2 1 1 2 1             .
  1 0 0 2 0 0 1
  1 1 0 2 2 0 1 1
  1 2 1 2 1 2 1 2 1
		

Crossrefs

Programs

Formula

From Antti Karttunen, Jul 27 2017: (Start)
a(n) = (3^k + 1)*2^(y-1), where y = A062756(n) and k = A081603(n). [See e.g. Wells or Wilson references.]
a(n) = A006047(n) - A227428(n).
(End)
From David A. Corneth and Antti Karttunen, Jul 27 2017: (Start)
Based on the first formula above, we have following identities:
a(3n) = a(n).
a(3n+1) = 2*a(n).
a(9n+4) = 4*a(n).
(End)
a(n) = (1/2)*Sum_{k = 0..n} mod(C(n,k) + C(n,k)^2, 3). - Peter Bala, Dec 17 2020