Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A072948
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A072948 Number of permutations p of (1,2,3,...,2n) such that sum(k=1,2n,abs(k-p(k)))=2n. +0
2
1, 7, 46, 327, 2350, 17222, 127508, 952299 (list; graph; listen)
OFFSET

1,2

FORMULA

This is impossible if the number of symbols is odd.

PROGRAM

(PARI) a(n)=sum(k=1, n!, if(sum(i=1, n, abs(i-component(numtoperm(n, k), i)))-n, 0, 1))

CROSSREFS

Cf. A072949.

Sequence in context: A081894 A128597 A067318 this_sequence A000823 A036944 A068640

Adjacent sequences: A072945 A072946 A072947 this_sequence A072949 A072950 A072951

KEYWORD

more,nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Aug 20 2002

EXTENSIONS

One more term from Michel ten Voorde (seqfan(AT)tenvoorde.org) Jun 13 2003

17222 from Ryan Propper (rpropper(AT)stanford.edu), Mar 26 2007

2 more terms Sean A. Irvine (sairvin(AT)xtra.co.nz), Sep 22 2009

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 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research