%I #4 Mar 03 2015 12:19:11
%S 1,2,1,2,2,1,3,4,4,1,3,8,10,6,1,4,9,26,21,8,1,5,17,33,81,47,14,1,6,24,
%T 75,120,261,102,19,1,6,32,121,342,480,936,256,33,1,7,36,191,653,1707,
%U 2079,3435,754,69,1,7,48,242,1221,3764,8814,9044,12406,2169,162,1,8,52,374
%N T(n,k)=Number of length n 1..(k+2) arrays with no leading partial sum equal to a prime and no consecutive values equal
%C Table starts
%C .1...2....2......3......3.......4........5.........6.........6.........7
%C .1...2....4......8......9......17.......24........32........36........48
%C .1...4...10.....26.....33......75......121.......191.......242.......374
%C .1...6...21.....81....120.....342......653......1221......1729......3037
%C .1...8...47....261....480....1707.....3764......8072.....12646.....24669
%C .1..14..102....936...2079....8814....22155.....53090.....91493....200228
%C .1..19..256...3435...9044...45735...127375....346499....667623...1659159
%C .1..33..754..12406..39604..229317...721134...2312940...4999570..13912571
%C .1..69.2169..45637.170835.1129024..4201419..15787318..37773069.116235183
%C .1.162.5999.165303.720348.5744720.25338485.107642427.282611786.969235198
%H R. H. Hardin, <a href="/A255716/b255716.txt">Table of n, a(n) for n = 1..9999</a>
%e Some solutions for n=4 k=4
%e ..4....4....4....6....4....1....1....6....1....1....1....1....6....1....4....1
%e ..5....5....6....2....6....3....5....3....3....3....3....5....3....3....6....3
%e ..3....6....4....6....4....4....2....1....2....5....6....6....1....2....2....6
%e ..6....3....2....4....6....1....4....2....6....1....5....4....5....3....6....2
%Y Row 1 is A062298(n+2)
%K nonn,tabl
%O 1,2
%A _R. H. Hardin_, Mar 03 2015