A255716 T(n,k)=Number of length n 1..(k+2) arrays with no leading partial sum equal to a prime and no consecutive values equal.
1, 2, 1, 2, 2, 1, 3, 4, 4, 1, 3, 8, 10, 6, 1, 4, 9, 26, 21, 8, 1, 5, 17, 33, 81, 47, 14, 1, 6, 24, 75, 120, 261, 102, 19, 1, 6, 32, 121, 342, 480, 936, 256, 33, 1, 7, 36, 191, 653, 1707, 2079, 3435, 754, 69, 1, 7, 48, 242, 1221, 3764, 8814, 9044, 12406, 2169, 162, 1, 8, 52, 374
Offset: 1
Examples
Some solutions for n=4 k=4 ..4....4....4....6....4....1....1....6....1....1....1....1....6....1....4....1 ..5....5....6....2....6....3....5....3....3....3....3....5....3....3....6....3 ..3....6....4....6....4....4....2....1....2....5....6....6....1....2....2....6 ..6....3....2....4....6....1....4....2....6....1....5....4....5....3....6....2
Links
- R. H. Hardin, Table of n, a(n) for n = 1..9999
Crossrefs
Row 1 is A062298(n+2)
Comments