login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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, 4, 21, 142, 1175, 11476, 129073, 1641802, 23292459, 364530688, 6237123365, 115806988342, 2318774566303, 49799220552940, 1141845310143897, 27838573420105762, 719091858410591507, 19617132273844278232 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

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: A121124 A180399 A087761 * A053482 A158577 A006879

Adjacent sequences:  A120365 A120366 A120367 * A120369 A120370 A120371

KEYWORD

easy,nonn

AUTHOR

Jose Luis Arregui (arregui(AT)unizar.es), Jun 26 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 11:18 EST 2012. Contains 206011 sequences.