The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A193776 Number of signed permutations of length n invariant under the reverse complement and avoiding (-2, -1), (-2, 1), (2, -1). 0
1, 2, 3, 5, 12, 17, 65, 80, 473, 527, 4444, 4679, 51391, 52628, 703659, 711449, 11098896, 11156477, 197809793, 198299024, 3927270089, 3931960343, 85908742132, 85958728847, 2052375195679, 2052960568556, 53160174898371, 53167638586121, 1483752628890840, 1483855482962885, 44391655829672177 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(2k) = 2^k k! + \sum_{j=0}^{k-1}(k-j-1)! a(2j)
a(2k+1) = (2^k + 1)k! + \sum_{j=0}^{k-1}(k-j-1)! a(2j+1)
EXAMPLE
For n = 2, the permutations are (1, 2), (2, 1), (-1, -2), (-2, -1).
MATHEMATICA
a[n_] := a[n] = If[EvenQ[n],
Sum[a[2j]*(n/2 - j - 1)!, {j, 0, n/2 - 1}] + 2^(n/2)*(n/2)!,
Sum[a[2j+1]*((1/2)*(n - 2j - 3))!, {j, 0, (n - 3)/2}] +
(2^((n - 1)/2) + 1)*((n - 1)/2)!];
Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Apr 10 2024 *)
CROSSREFS
Sequence in context: A002139 A140489 A331101 * A051915 A064688 A089891
KEYWORD
nonn
AUTHOR
Andy Hardt, Aug 04 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 19:53 EDT 2024. Contains 372607 sequences. (Running on oeis4.)