login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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.
1
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,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..150 (first 34 terms from R. H. Hardin)
EXAMPLE
All solutions for n=4:
..1....1....4....1
..3....5....2....3
..2....3....3....5
..4....1....1....1
CROSSREFS
Column k=3 of A254218.
Sequence in context: A283528 A336972 A110990 * A321171 A336973 A369017
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 26 2015
STATUS
approved