Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A090931
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A090931 Number of permutations of 1,..,2n with alternate odd/even entries that have no adjacent members when placed in a circle. +0
1
0, 0, 0, 8, 140, 5940 (list; graph; listen)
OFFSET

1,4

EXAMPLE

The 8 for a(4) are;

[7, 4, 1, 6, 3, 8, 5, 2]

[5, 2, 7, 4, 1, 6, 3, 8]

[1, 4, 7, 2, 5, 8, 3, 6]

[3, 8, 5, 2, 7, 4, 1, 6]

[3, 6, 1, 4, 7, 2, 5, 8]

[5, 8, 3, 6, 1, 4, 7, 2]

[1, 6, 3, 8, 5, 2, 7, 4]

[7, 2, 5, 8, 3, 6, 1, 4]

PROGRAM

(PARI) { for (i=1, 6, c=0; for (j=1, i!, for (k=1, i!, x=numtoperm(i, j); y=numtoperm(i, k); v=vector(2*i); forstep (z=1, 2*i, 2, v[z]=x[(z+1)/2]*2-1); forstep (z=2, 2*i, 2, v[z]=y[z/2]*2); fl=1; for (z=1, 2*i-1, if (v[z]==v[z+1]+1, fl=0; break); if (v[z]==v[z+1]-1, fl=0; break)); if (v[2*i]==v[1]+1, fl=0); if (v[2*i]==v[1]-1, fl=0); if (fl==1, c++))); print1(", "c)) }

CROSSREFS

Cf. A078092.

Sequence in context: A091060 A092703 A061996 this_sequence A112464 A065409 A061899

Adjacent sequences: A090928 A090929 A090930 this_sequence A090932 A090933 A090934

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Feb 26 2004

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research