A255710 Number of length n 1..(2+2) arrays with no leading partial sum equal to a prime and no consecutive values equal.
2, 2, 4, 6, 8, 14, 19, 33, 69, 162, 325, 616, 1314, 2874, 6099, 11780, 21630, 42778, 95379, 225424, 532771, 1184433, 2434239, 4904932, 10213447, 21612164, 44580230, 89065496, 178617292, 373380471, 821875838, 1887456086, 4465488647
Offset: 1
Keywords
Examples
All solutions for n=4 ..1....4....1....1....1....4 ..3....2....3....3....3....2 ..2....4....4....4....2....3 ..3....2....1....2....4....1
Links
- R. H. Hardin, Table of n, a(n) for n = 1..210
Crossrefs
Cf. A255716
Comments