A145201 Triangle read by rows: T(n,k) = S(n,k) mod n, where S(n,k) = Stirling numbers of the first kind.
0, 1, 1, 2, 0, 1, 2, 3, 2, 1, 4, 0, 0, 0, 1, 0, 4, 3, 1, 3, 1, 6, 0, 0, 0, 0, 0, 1, 0, 4, 4, 1, 0, 2, 4, 1, 0, 0, 8, 0, 3, 0, 6, 0, 1, 0, 6, 0, 0, 5, 3, 0, 0, 5, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 6, 11, 6, 3, 6, 5, 6, 1, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 8, 0, 0, 0, 0, 7, 5, 7, 7, 7, 7, 7
Offset: 1
Examples
Triangle starts: 0; 1, 1; 2, 0, 1; 2, 3, 2, 1; 4, 0, 0, 0, 1; 0, 4, 3, 1, 3, 1; 6, 0, 0, 0, 0, 0, 1; ....
Programs
-
PARI
tabl(nn) = {for (n=1, nn, for (k=1, n, print1(stirling(n, k, 1) % n, ", ");); print(););} \\ Michel Marcus, Aug 10 2015
Formula
T(n,k) = S(n,k) mod n, where S(n,k) = Stirling numbers of the first kind.
Comments