|
Search: id:A120368
|
|
|
| A120368 |
|
a(n) = number of sequences (a_1, a_2, ..., a_n) in {1,2,...,n} such that the range {a_1, a_2, ..., a_n} is an interval. |
|
+0 1
|
|
| 1, 1, 4, 21, 142, 1175, 11476, 129073, 1641802, 23292459, 364530688, 6237123365, 115806988342, 2318774566303, 49799220552940, 1141845310143897, 27838573420105762, 719091858410591507, 19617132273844278232
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
a(n) = (n+1)*A(n) - (A(n+1)-A(n))/2, where A is sequence A000670
|
|
FORMULA
|
Exponential generating function = (3-2*exp(x)+x*exp(x))/(exp(x)-2)^2 formula: a(0)=1, a(n)=Sum_{k=1..n}(n-k+1)*k!*Stirling2(n,k)
|
|
EXAMPLE
|
the range of (2,5,5,3,4) is the interval {2,3,4,5}, the range of (2,5,5,3,2) is {2,3,5}, not an interval since 4 is missing
a(3) = 21 because the only 3-sequences in {1,2,3} (from a total of 3^3=27) whose range is not an interval are (1,1,3), (1,3,1), (1,3,3), (3,1,1), (3,1,3) and (3,3,1)
|
|
CROSSREFS
|
Sequence in context: A052852 A121124 A087761 this_sequence A053482 A158577 A006879
Adjacent sequences: A120365 A120366 A120367 this_sequence A120369 A120370 A120371
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Jose Luis Arregui (arregui(AT)unizar.es), Jun 26 2006
|
|
|
Search completed in 0.002 seconds
|