login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178517 Triangle read by rows: T(n,k) is the number of non-derangement permutations of {1,2,...,n} having genus k (see first comment for definition of genus). 3

%I #8 Nov 01 2012 12:36:52

%S 1,1,0,4,0,0,11,4,0,0,36,40,0,0,0,117,290,48,0,0,0,393,1785,1008,0,0,

%T 0,0,1339,9996,12712,1440,0,0,0,0,4630,52584,123858,48312,0,0,0,0,0,

%U 16193,264720,1027446,904840,80640,0,0,0,0,0,57201,1290135,7627158,12449800,3807936,0

%N Triangle read by rows: T(n,k) is the number of non-derangement permutations of {1,2,...,n} having genus k (see first comment for definition of genus).

%C The genus g(p) of a permutation p of {1,2,...,n} is defined by g(p)=(1/2)[n+1-z(p)-z(cp')], where p' is the inverse permutation of p, c = 234...n1 = (1,2,...,n), and z(q) is the number of cycles of the permutation q.

%C The sum of the entries in row n is A002467(n).

%C The number of entries in row n is floor(n/2).

%C T(n,0) = A106640(n-1) .

%D S. Dulucq and R. Simion, Combinatorial statistics on alternating permutations, J. Algebraic Combinatorics, 8 (1998), 169-191.

%e T(3,0)=4 because all non-derangements of {1,2,3}, namely 123=(1)(2)(3), 132=(1)(23), 213=(12)(3), and 321=(13)(2) have genus 0. This follows easily from the fact that a permutation p of {1,2,...,n} has genus 0 if and only if the cycle decomposition of p gives a noncrossing partition of {1,2,...,n} and each cycle of p is increasing (see Lemma 2.1 of the Dulucq-Simion reference).

%e Triangle starts:

%e [ 1] 1,

%e [ 2] 1, 0,

%e [ 3] 4, 0, 0,

%e [ 4] 11, 4, 0, 0,

%e [ 5] 36, 40, 0, 0, 0,

%e [ 6] 117, 290, 48, 0, 0, 0,

%e [ 7] 393, 1785, 1008, 0, 0, 0, 0,

%e [ 8] 1339, 9996, 12712, 1440, 0, 0, 0, 0,

%e [ 9] 4630, 52584, 123858, 48312, 0, 0, 0, 0, 0,

%e [10] 16193, 264720, 1027446, 904840, 80640, 0, 0, 0, 0, 0,

%e [11] 57201, 1290135, 7627158, 12449800, 3807936, 0, 0, 0, 0, 0, 0,

%e [12] 203799, 6133930, 52188774, 140356480, 96646176, 7257600, 0, ...,

%e [13] 731602, 28603718, 335517468, 1373691176, 1749377344, 448306560, 0, ...,

%e ...

%p n := 7: with(combinat): P := permute(n): inv := proc (p) local j, q: for j to nops(p) do q[p[j]] := j end do: [seq(q[i], i = 1 .. nops(p))] end proc: nrfp := proc (p) local ct, j: ct := 0: for j to nops(p) do if p[j] = j then ct := ct+1 else end if end do: ct end proc: nrcyc := proc (p) local pc: pc := convert(p, disjcyc): nops(pc)+nrfp(p) end proc: b := proc (p) local c: c := [seq(i+1, i = 1 .. nops(p)-1), 1]: [seq(c[p[j]], j = 1 .. nops(p))] end proc: gen := proc (p) options operator, arrow: (1/2)*nops(p)+1/2-(1/2)*nrcyc(p)-(1/2)*nrcyc(b(inv(p))) end proc: NDER := {}: for i to factorial(n) do if nrfp(P[i]) > 0 then NDER := `union`(NDER, {P[i]}) else end if end do: f[n] := sort(add(t^gen(NDER[j]), j = 1 .. nops(NDER))): seq(coeff(f[n], t, j), j = 0 .. floor((1/2)*n)-1); # yields the entries in the specified row n

%Y Cf. A177267 (genus of all permutations).

%Y Cf. A178514 (genus of derangements), A178515 (genus of involutions), A178516 (genus of up-down permutations), A178518 (permutations of [n] having genus 0 and p(1)=k), A185209 (genus of connected permutations).

%Y Cf. A002467, A106640.

%K nonn,hard,tabl

%O 1,4

%A _Emeric Deutsch_, May 30 2010

%E Terms beyond row 7 from _Joerg Arndt_, Nov 01 2012.

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 13:06 EDT 2024. Contains 375269 sequences. (Running on oeis4.)