A081371 Binomial coefficients C[n,j] reduced modulo j, j=1,...n; read by rows, j=0 is omitted because of mod[n,0].
0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 2, 3, 1, 1, 0, 1, 2, 3, 1, 1, 1, 0, 0, 2, 2, 1, 4, 1, 1, 0, 0, 0, 2, 1, 0, 1, 1, 1, 0, 1, 0, 2, 2, 0, 1, 5, 1, 1, 0, 1, 0, 2, 2, 0, 1, 5, 1, 1, 1, 0, 0, 1, 3, 2, 0, 1, 7, 4, 6, 1, 1, 0, 0, 1, 3, 2, 0, 1, 7, 4, 6, 1, 1, 1, 0, 1, 1, 1, 2, 3, 2, 3, 4, 1, 1, 7, 1, 1
Offset: 1
Examples
Triangle begins: 0, 0,1, 0,1,1, 0,0,1,1, 0,0,1,1,1, 0,1,2,3,1,1, 0,1,2,3,1,1,1,
Links
- Michel Marcus, Rows n = 1..100 of triangle, flattened
Crossrefs
Cf. A007318.
Programs
-
Mathematica
Flatten[Table[Table[Mod[Binomial[n, j], j], {j, 1, n}], {n, 1, 50}], 1]
-
PARI
tabl(nn)=for(n=1, nn, for (k=1, n, print1(binomial(n, k) % k, ", ")); print) \\ Michel Marcus, Feb 01 2017