A254215 Number of length n 1..(5+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
3, 2, 12, 24, 70, 192, 633, 2484, 10554, 35054, 102520, 337948, 1366804, 6000028, 24951622, 94266262, 337342046, 1263530794, 5269371063, 23209051416, 98571237345, 383041820280, 1353435250769, 4542413798878, 16490190511798, 76615460665948, 434914649543770
Offset: 1
Keywords
Examples
Some solutions for n=4: ..6....6....6....4....4....1....4....1....4....4....4....4....1....6....1....6 ..2....2....4....6....6....5....5....5....2....2....6....2....3....4....5....4 ..6....7....2....4....2....3....3....6....4....6....2....3....2....6....4....2 ..4....1....4....6....4....1....6....4....6....4....6....1....4....4....6....6
Crossrefs
Column k=5 of A254218.
Extensions
a(23)-a(27) from Alois P. Heinz, Jan 27 2015