This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A090931 Number of permutations of 1,..,2n with alternate odd/even entries that have no adjacent members when placed in a circle. 0
 0, 0, 0, 8, 140, 5940 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 LINKS 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] PROG (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: A212442 A185248 A224735 * A180357 A112464 A212703 Adjacent sequences:  A090928 A090929 A090930 * A090932 A090933 A090934 KEYWORD nonn AUTHOR Jon Perry, Feb 26 2004 STATUS approved

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 June 19 16:26 EDT 2013. Contains 226415 sequences.