A117947 T(n,k)=L(C(n,k)/3) where L(j/p) is the Legendre symbol of j and p.
1, 1, 1, 1, -1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, -1, 1, 1, -1, 1, 1, 0, 0, -1, 0, 0, 1, 1, 1, 0, -1, -1, 0, 1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, -1, 1, 0, 0, 0, 0, 0, 0, 1, -1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, -1, 1, 1, -1, 1, 0, 0, 0, 1, -1, 1, 1, -1, 1
Offset: 0
Examples
Triangle begins: 1; 1, 1; 1, -1, 1; 1, 0, 0, 1; 1, 1, 0, 1, 1; ...
Programs
-
PARI
T(n,k)=(binomial(n,k)+1)%3-1 - Paul D. Hanna, Jul 08 2006
Formula
T(n,k) = balanced ternary digit of C(n,k) mod 3. - Paul D. Hanna, Jul 08 2006
Comments