A254213 Number of length n 1..(3+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
2, 0, 3, 4, 8, 6, 15, 18, 45, 118, 553, 1706, 2845, 2970, 4470, 9426, 30908, 115084, 350693, 804152, 1724453, 3598260, 6467166, 12292306, 36973565, 137754308, 493838258, 1570992174, 4107583256, 8556975584, 14790344176, 23129972292
Offset: 1
Keywords
Examples
All solutions for n=4: ..1....1....4....1 ..3....5....2....3 ..2....3....3....5 ..4....1....1....1
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..150 (first 34 terms from R. H. Hardin)
Crossrefs
Column k=3 of A254218.