A254220 Number of length 3 1..(n+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
0, 1, 3, 11, 12, 32, 48, 86, 98, 172, 183, 295, 383, 525, 559, 793, 829, 1110, 1324, 1646, 1709, 2199, 2531, 3056, 3469, 4088, 4240, 5109, 5232, 6062, 6762, 7716, 8528, 9788, 9981, 11227, 12290, 13721, 14030, 15841, 16146, 17912, 19384, 21355, 21760, 24188
Offset: 1
Keywords
Examples
All solutions for n=4 ..1....6....4....4....1....4....6....6....4....6....6 ..5....3....6....2....3....2....2....4....5....3....2 ..4....6....4....6....6....4....4....6....1....1....6
Links
- R. H. Hardin, Table of n, a(n) for n = 1..210
Comments