A254204 T(n,k)=Number of length n 1..(k+2) arrays with no leading or trailing partial sum equal to a prime.
1, 2, 0, 2, 1, 0, 3, 1, 2, 0, 3, 4, 4, 6, 1, 4, 4, 17, 9, 11, 0, 5, 11, 18, 54, 21, 27, 0, 6, 16, 47, 59, 176, 47, 53, 1, 6, 23, 68, 195, 204, 610, 118, 133, 0, 7, 23, 119, 315, 898, 769, 2197, 333, 310, 0, 7, 34, 131, 676, 1653, 4353, 3098, 8358, 984, 691, 1, 8, 34, 226, 786, 4078
Offset: 1
Examples
Some solutions for n=4 k=4 ..4....6....4....4....6....4....1....4....6....6....1....4....6....6....1....6 ..2....4....5....2....6....6....3....6....6....4....5....4....6....6....3....3 ..2....4....3....4....3....5....6....6....3....2....6....4....6....2....2....5 ..6....4....6....4....1....1....6....4....6....4....4....4....4....4....4....4
Links
- R. H. Hardin, Table of n, a(n) for n = 1..264
Crossrefs
Row 1 is A062298(n+2)
Comments