A254222 Number of length 5 1..(n+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
1, 2, 8, 56, 70, 373, 766, 2056, 2803, 6705, 8187, 16545, 24733, 41212, 48532, 81412, 92845, 144041, 189040, 265403, 297177, 431956, 529070, 713448, 869044, 1126558, 1239341, 1658996, 1795709, 2254484, 2659181, 3286796, 3820778, 4762245, 5091242
Offset: 1
Keywords
Examples
Some solutions for n=4 ..6....6....4....1....6....6....1....6....1....4....4....6....4....1....6....1 ..2....4....6....5....4....2....5....2....3....2....2....3....5....5....2....3 ..4....5....5....3....6....4....6....4....4....6....3....1....6....4....6....2 ..2....3....6....5....5....3....3....6....2....4....5....2....3....2....2....3 ..4....6....4....1....1....1....1....4....6....6....4....6....6....4....6....1
Links
- R. H. Hardin, Table of n, a(n) for n = 1..210
Comments