A255711 Number of length n 1..(3+2) arrays with no leading partial sum equal to a prime and no consecutive values equal.
2, 4, 10, 21, 47, 102, 256, 754, 2169, 5999, 17237, 49510, 132956, 339522, 900236, 2620855, 8077245, 24619352, 71983144, 205409149, 584195761, 1647027286, 4572955010, 12705583667, 36182897964, 106766407391, 326242477740
Offset: 1
Keywords
Examples
Some solutions for n=4 ..4....4....1....1....1....1....1....1....4....4....4....4....4....1....1....1 ..2....5....3....5....5....3....3....5....2....2....5....5....5....5....3....3 ..4....1....4....4....3....4....2....4....3....4....1....3....3....3....5....5 ..2....2....1....2....5....2....4....5....1....5....4....2....4....1....1....3
Links
- R. H. Hardin, Table of n, a(n) for n = 1..210
Crossrefs
Cf. A255716
Comments