A254539 T(n,k)=Number of length n 1..(k+2) arrays with no leading partial sum equal to a prime.
1, 2, 1, 2, 3, 1, 3, 5, 8, 2, 3, 10, 15, 20, 4, 4, 11, 40, 45, 50, 6, 5, 20, 49, 160, 135, 126, 11, 6, 28, 105, 222, 670, 421, 329, 20, 6, 37, 163, 576, 1087, 3001, 1466, 956, 33, 7, 41, 253, 1026, 3383, 5604, 13503, 5403, 2897, 62, 7, 54, 307, 1849, 6814, 20393, 29038, 60408
Offset: 1
Examples
Some solutions for n=4 k=4 ..4....4....6....6....6....4....4....6....1....4....6....1....4....1....6....6 ..4....6....6....3....2....6....2....6....5....5....6....5....6....3....3....2 ..1....5....4....5....1....2....2....2....2....1....2....6....6....5....1....4 ..1....5....4....2....6....2....1....1....1....2....2....6....4....3....5....4
Links
- R. H. Hardin, Table of n, a(n) for n = 1..9999
Crossrefs
Row 1 is A062298(n+2)
Comments