A254211 Number of length n 1..(1+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 456, 2178, 3376, 2222, 720, 158, 24, 0, 0, 0, 0, 0, 10, 122, 204, 116, 26, 2, 10, 72, 84, 25, 6, 4, 0, 0, 0, 0, 0
Offset: 1
Examples
All solutions for n=5: ..1 ..3 ..2 ..3 ..1
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..1970
Crossrefs
Column k=1 of A254218.
Comments