Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A114215
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A114215 Number of derangements of [n] avoiding the patterns 123, 132 and 213. +0
1
0, 1, 2, 4, 4, 9, 12, 25, 30, 64, 80, 169, 208, 441, 546, 1156, 1428, 3025, 3740, 7921, 9790, 20736, 25632, 54289, 67104, 142129, 175682, 372100, 459940, 974169, 1204140, 2550409, 3152478, 6677056, 8253296, 17480761, 21607408, 45765225 (list; graph; listen)
OFFSET

1,3

REFERENCES

T. Mansour and A. Robertson, Refined restricted permutations avoiding subsets of patterns of length three, Annals of Combinatorics, 6, 2002, 407-418; Theorem 3.2.

FORMULA

a(n)=F(n)-F((n-2)/2)^2 if n is even; a(n)=F(n)-F((n-1)/2)^2 if n is odd; here F(n) is the Fibonacci sequence with F(0)=F(1)=1.

EXAMPLE

a(2)=1 because we have 21; a(3)=2 because we have 231 and 312; a(4)=4 because we have 3412,3421,4312 and 4321.

MAPLE

with(combinat): F:=n->fibonacci(n+1): a:=proc(n) if n mod 2 = 0 then F(n)-F((n-2)/2)^2 else F(n)-F((n-1)/2)^2 fi end: seq(a(n), n=1..45);

CROSSREFS

Sequence in context: A010464 A006579 A039887 this_sequence A151712 A038043 A126138

Adjacent sequences: A114212 A114213 A114214 this_sequence A114216 A114217 A114218

KEYWORD

nonn

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Nov 17 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 18 21:37 EST 2009. Contains 171024 sequences.


AT&T Labs Research