A254197 Number of length n 1..(1+2) arrays with no leading or trailing partial sum equal to a prime.
1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 2, 14, 66, 156, 202, 151, 69, 18, 7, 19, 37, 78, 393, 2608, 12865, 45917, 121659, 245151, 393062, 565673, 910088, 1775336, 3503048, 5974259, 8372896, 9844151, 11328144, 18364097, 44444934, 112695335, 249504498
Offset: 1
Keywords
Examples
All solutions for n=15 ..1....1....1....1....1....1....1....1....1....1....1....1....1....1 ..3....3....3....3....3....3....3....3....3....3....3....3....3....3 ..2....2....2....2....2....2....2....2....2....2....2....2....2....2 ..3....2....3....3....3....3....3....3....3....3....2....3....3....3 ..3....2....3....1....3....3....3....3....3....3....1....3....3....3 ..3....2....3....2....3....3....2....3....3....2....3....3....3....2 ..1....3....3....3....3....3....1....3....3....2....3....3....3....2 ..2....3....3....3....3....2....3....3....2....2....3....3....3....2 ..3....3....3....3....3....1....3....3....2....3....3....1....3....2 ..3....3....2....3....3....3....3....2....2....3....3....2....3....2 ..3....3....1....3....3....3....3....2....3....3....3....3....1....3 ..3....3....3....3....3....3....3....2....3....3....3....3....2....3 ..2....2....2....2....2....2....2....2....2....2....2....2....2....2 ..3....3....3....3....3....3....3....3....3....3....3....3....3....3 ..1....1....1....1....1....1....1....1....1....1....1....1....1....1
Links
- R. H. Hardin, Table of n, a(n) for n = 1..66
Comments