A254212 Number of length n 1..(2+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
2, 0, 1, 2, 2, 2, 2, 2, 5, 4, 5, 8, 31, 64, 83, 66, 60, 104, 158, 240, 846, 2990, 6296, 8440, 10213, 14034, 16843, 15538, 20339, 57766, 202098, 751354, 2575608, 6730882, 12332861, 15945860, 15602393, 13432584, 12250132, 12687426, 23661609, 144529800
Offset: 1
Keywords
Examples
All solutions for n=4: ..4....1 ..2....3 ..3....2 ..1....4
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..300 (first 51 terms from R. H. Hardin)
Crossrefs
Column k=2 of A254218.