A254221 Number of length 4 1..(n+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
0, 2, 4, 22, 24, 96, 168, 388, 490, 1024, 1168, 2138, 3000, 4554, 5084, 7872, 8570, 12358, 15532, 20538, 22120, 30338, 35972, 45928, 54068, 66830, 71348, 90658, 95374, 115162, 132074, 156726, 177542, 212556, 221796, 258292, 289706, 334554, 349466
Offset: 1
Keywords
Examples
Some solutions for n=4 ..6....6....1....4....4....4....4....6....1....6....1....1....1....4....6....4 ..4....2....5....6....2....6....6....4....3....4....5....5....3....2....3....2 ..5....6....3....2....4....2....4....2....2....6....3....4....5....3....5....6 ..1....4....1....4....6....6....6....4....4....4....6....6....1....1....4....4
Links
- R. H. Hardin, Table of n, a(n) for n = 1..210
Comments