login
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.
1
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,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..300 (first 51 terms from R. H. Hardin)
EXAMPLE
All solutions for n=4:
..4....1
..2....3
..3....2
..1....4
CROSSREFS
Column k=2 of A254218.
Sequence in context: A260411 A199331 A243917 * A033773 A029275 A058739
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 26 2015
STATUS
approved