A254214 Number of length n 1..(4+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
3, 2, 11, 22, 56, 136, 383, 1070, 3897, 13372, 36290, 91998, 263764, 898044, 3423582, 12431962, 40311611, 119109004, 342803738, 1087179458, 4009074487, 15810174070, 60200487014, 208013211868, 641452364953
Offset: 1
Keywords
Examples
Some solutions for n=4 ..1....1....1....4....4....4....6....4....4....6....1....4....1....6....1....6 ..5....5....3....2....5....6....3....2....6....4....5....6....5....4....3....4 ..3....6....2....6....3....5....5....3....2....2....3....2....4....6....5....5 ..6....4....4....4....6....1....4....1....6....6....1....4....6....4....1....1
Comments