|
|
A268459
|
|
Number of length-5 0..n arrays with no adjacent pair x,x+1 followed at any distance by x+1,x.
|
|
1
|
|
|
16, 176, 852, 2776, 7160, 15816, 31276, 56912, 97056, 157120, 243716, 364776, 529672, 749336, 1036380, 1405216, 1872176, 2455632, 3176116, 4056440, 5121816, 6399976, 7921292, 9718896, 11828800, 14290016, 17144676, 20438152, 24219176
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
Empirical: a(n) = n^5 + 5*n^4 + 7*n^3 + n^2 + 2*n.
G.f.: 4*x*(4 + 20*x + 9*x^2 - 4*x^3 + x^4) / (1 - x)^6.
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6) for n>6.
(End)
|
|
EXAMPLE
|
Some solutions for n=9:
7 5 8 9 3 4 1 2 0 4 3 1 5 1 5 3
1 4 0 0 3 4 6 4 1 4 6 5 9 8 7 0
3 1 2 5 2 7 1 2 3 7 4 6 7 6 6 3
6 1 7 6 1 6 7 1 6 5 4 8 6 6 5 9
1 1 9 6 5 3 5 8 3 6 4 9 4 6 5 7
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|