Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125300
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125300 Tanimoto triangle read by rows: T(n,k) = number of "parity-alternating permutations" (PAPS) of n symbols with k ascents. +0
1
1, 1, 1, 0, 1, 1, 3, 3, 1, 1, 2, 6, 2, 1, 1, 9, 26, 26, 9, 1, 1, 8, 39, 48, 39, 8, 1, 1, 23, 165, 387, 387, 165, 23, 1, 1, 22, 228, 674, 1030, 674, 228, 22, 1, 1, 53, 860, 4292, 9194, 9194, 4292, 860, 53, 1 (list; table; graph; listen)
OFFSET

1,7

COMMENT

A permutation is a parity-alternating permutation (PAP) if its entries take even and odd integers alternately (examples: 436125, 563412 or 7216345). When n is an odd integer, odd entries must appear at both ends of PAPs. T(n,k) = the number of PAPs of {1,2,...,n} with exactly k ascents. Row sums = 2*((n/2)!)^2 if n is even and ((n+1)/2)!*((n-1)/2)! if n is odd.

Arises in combinatorial analysis of signed Eulerian numbers and parity-alternate permutations. This table is the first of three tables on p. 4 of Tanimoto reference.

LINKS

Shinji Tanimoto,Alternate Permutations and Signed Eulerian Numbers, math.CO/0612135.

FORMULA

T(n,k) = T(n,n-k-1).

EXAMPLE

Triangle begins:

n=2.|.1....1

n=3.|.1....0....1

n=4.|.1....3....3....1

n=5.|.1....2....6....2....1

n=6.|.1....9...26...26....9....1

n=7.|.1....8...39...48...39....8....1

n=8.|.1...23..165..387..387..165...23....1

n=9.|.1...22..228..674.1030..674..228...22....1

n=10|.1...53..860.4292.9194.9194.4292..860...53....1

Examples of parity-alternating permutations of n=5 and their

number of rises k are [1,2,3,4,5] (k=4, only rises), [1,2,5,4,3] (k=2:

1->2 and 2->5), [1,4,3,2,5] (k=2: 1->4 and 2->5). The T(n=5,k=1)=2

parity-alternating permutations with k=1 rise are [3,2,5,4,1] and [5,2,1,4,3].

MAPLE

isPAP := proc(per) local i ; for i from 2 to nops(per) do if ( op(i, per) mod 2 ) = (op(i-1, per) mod 2 ) then RETURN(false) ; fi ; od : RETURN(true) ; end: ascents := proc(per) local i, asc ; asc :=0 ; for i from 2 to nops(per) do if op(i, per) > op (i-1, per) then asc := asc+1 : fi ; od : RETURN(asc) ; end:

A125300row := proc(n) local per, resul, asc, thisp, p, i, row ; row := array(0..n-1) ; for i from 0 to n-1 do row[i] := 0 : od ; per := combinat[permute](n) ; for p from 1 to nops(per) do asc := 0 ; thisp := op(p, per) ; if isPAP(thisp) then asc := ascents(thisp) ; row[asc] := row[asc]+1 ; fi ; od ; RETURN(row) : end: for n from 2 to 10 do r := A125300row(n) ; for k from 0 to n-1 do print(r[k]) ; od : od : - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Dec 12 2006

CROSSREFS

Cf. A008292 = Triangle of Eulerian numbers T(n, k) read by rows, A049061 = Triangle a(n, k) (1<=k<=n) of signed Eulerian numbers.

Adjacent sequences: A125297 A125298 A125299 this_sequence A125301 A125302 A125303

Sequence in context: A107333 A098505 A021306 this_sequence A126717 A124039 A096433

KEYWORD

nonn,tabl

AUTHOR

Jonathan Vos Post (jvospost2(AT)yahoo.com), Dec 08 2006, Dec 11 2006

EXTENSIONS

Corrected by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Dec 12 2006

Edited by njas, Dec 21 2006

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 October 7 08:31 EDT 2008. Contains 144667 sequences.


AT&T Labs Research