A254216 Number of length n 1..(6+2) arrays with no leading or trailing partial sum equal to a prime and no consecutive values equal.
4, 8, 32, 96, 373, 1472, 6490, 28190, 109811, 428042, 1877657, 8933652, 41803166, 184319728, 792231146, 3584762414, 17422197427, 85469221254, 398370084189, 1733366825266, 7251337491976, 32000172689890, 165843262226680, 977297442443092, 5688296579514244
Offset: 1
Keywords
Examples
Some solutions for n=4: ..6....6....4....1....4....4....8....1....8....6....6....8....1....6....8....4 ..4....4....5....5....8....2....4....7....2....8....2....2....3....4....2....5 ..6....2....1....4....4....4....2....2....8....2....7....6....4....2....8....7 ..8....8....8....6....8....8....8....6....4....8....1....4....8....6....6....8
Crossrefs
Column k=6 of A254218.
Extensions
a(23)-a(25) from Alois P. Heinz, Jan 27 2015