|
Search: id:A072948
|
|
|
| A072948 |
|
Number of permutations p of (1,2,3,...,2n) such that sum(k=1,2n,abs(k-p(k)))=2n. |
|
+0 2
|
| |
|
|
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
|
|
|
Search completed in 0.002 seconds
|