A221321 T(n,k)=Number of nonnegative integer arrays of length n summing to n without equal adjacent values modulo k.
1, 1, 0, 1, 0, 0, 1, 2, 3, 0, 1, 2, 6, 8, 0, 1, 2, 7, 8, 5, 0, 1, 2, 7, 14, 19, 0, 0, 1, 2, 7, 14, 28, 44, 28, 0, 1, 2, 7, 14, 30, 66, 84, 72, 0, 1, 2, 7, 14, 30, 76, 168, 212, 45, 0, 1, 2, 7, 14, 30, 76, 185, 378, 474, 0, 0, 1, 2, 7, 14, 30, 76, 188, 430, 866, 1008, 286, 0, 1, 2, 7, 14, 30, 76
Offset: 1
Examples
Some solutions for n=7 k=4 ..1....0....0....0....0....3....1....0....2....0....0....0....1....3....0....2 ..2....1....1....3....1....0....2....3....0....3....1....1....0....1....1....1 ..0....0....0....0....0....1....1....0....1....1....0....0....3....0....0....0 ..1....2....3....1....1....0....0....2....0....0....1....1....1....2....1....3 ..2....3....0....2....2....1....1....1....3....1....4....0....0....0....0....0 ..1....1....2....1....0....0....2....0....0....2....1....5....2....1....1....1 ..0....0....1....0....3....2....0....1....1....0....0....0....0....0....4....0
Links
- R. H. Hardin, Table of n, a(n) for n = 1..2347
Crossrefs
Diagonal is A221235 for n>3
Comments