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”).

A254215
Number of length n 1..(5+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
0
3, 2, 12, 24, 70, 192, 633, 2484, 10554, 35054, 102520, 337948, 1366804, 6000028, 24951622, 94266262, 337342046, 1263530794, 5269371063, 23209051416, 98571237345, 383041820280, 1353435250769, 4542413798878, 16490190511798, 76615460665948, 434914649543770
OFFSET
1,1
EXAMPLE
Some solutions for n=4:
..6....6....6....4....4....1....4....1....4....4....4....4....1....6....1....6
..2....2....4....6....6....5....5....5....2....2....6....2....3....4....5....4
..6....7....2....4....2....3....3....6....4....6....2....3....2....6....4....2
..4....1....4....6....4....1....6....4....6....4....6....1....4....4....6....6
CROSSREFS
Column k=5 of A254218.
Sequence in context: A361865 A356857 A086551 * A007214 A189736 A025232
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 26 2015
EXTENSIONS
a(23)-a(27) from Alois P. Heinz, Jan 27 2015
STATUS
approved