cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

User: Sam Coutteau

Sam Coutteau's wiki page.

Sam Coutteau has authored 2 sequences.

A370253 Number of deranged matchings of 2n people with partners (of either sex) such that at least one person is matched with their spouse.

Original entry on oeis.org

0, 1, 1, 7, 45, 401, 4355, 56127, 836353, 14144545, 267629139, 5601014255, 128455425593, 3203605245777, 86317343312395, 2498680706048191, 77336483434140705, 2548534969132415297, 89087730603300393443, 3292572900736818264015, 128281460895447809211529
Offset: 0

Author

Sam Coutteau, Feb 13 2024

Keywords

Examples

			For n=0, there is no matching which has at least one person matched with their original partner.
For n=1, there are only 2 people, so there is only one way to match them and it is with their original partner.
For n=2, we have two couples, A0 with A1, and B0 with B1. Of the three ways to match them [(A0,A1),(B0,B1)], [(A0,B0),(A1,B1)] and [(A0,B1),(A1,B0)], only the first matching has a person matched up with their original partner.
		

Crossrefs

Cf. A001147 (total number of matchings for 2n people).
Cf. A053871 (number of deranged matchings of 2n people with partners (of either sex) other than their spouse).

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<3, signum(n),
          (4*n-7)*a(n-1)-2*(2*n^2-10*n+11)*a(n-2)-2*(n-2)*(2*n-5)*a(n-3))
        end:
    seq(a(n), n=0..20);  # Alois P. Heinz, Feb 14 2024
  • Mathematica
    a[n_] := Sum[(-1)^(n-i+1)*Binomial[n, i]*(2i-1)!!, {i, 0, n-1}];
    Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Feb 29 2024 *)
  • Python
    import math
    A001147 = lambda i: math.factorial(2*i) // ( 2 ** i * math.factorial(i) )
    A370253 = lambda n: int( sum( (-1)**(i+1) * math.comb(n,n-i) * A001147(n-i) for i in range(1,n+1) ) )
    print( ", ".join( str(A370253(i)) for i in range(0,21) ) )

Formula

a(n) = A001147(n) - A053871(n).
a(n) = Sum_{i=0..n-1} (-1)^(n - i + 1) * binomial(n,i)*A001147(i).
a(n) mod 2 = A057427(n).
a(n) = Sum_{k=1..n} A055140(n,k). - Alois P. Heinz, Feb 14 2024

A319830 Decimal expansion of Integral_{0..oo} (x^(1/x-x)) dx.

Original entry on oeis.org

1, 3, 2, 0, 7, 3, 0, 4, 0, 0, 8, 6, 9, 6, 3, 6, 6, 6, 5, 4, 8, 8, 6, 1, 4, 8, 2, 7, 7, 8, 0, 7, 2, 6, 2, 0, 7, 5, 2, 3, 2, 4, 4, 7, 9, 5, 1, 8, 2, 5, 9, 6, 0, 7, 0, 6, 6, 7, 8, 7, 8, 5, 8, 5, 8, 6, 6, 3, 0, 3, 4, 9, 7, 2, 9, 7, 7, 2, 4, 3, 7, 4, 8, 1, 2, 5, 0, 3, 8, 5, 9, 2, 1, 9, 6, 6, 7, 2, 1, 7, 3, 9, 1, 7, 4
Offset: 1

Author

Sam Coutteau, Sep 28 2018

Keywords

Examples

			1.3207304008696366654886148277807262075232447951825960706678785858663...
		

Crossrefs

Cf. A229191.

Programs

  • Maple
    evalf(Int(x^(1/x-x), x = 0..infinity), 120);
  • Mathematica
    RealDigits[NIntegrate[x^(1/x - x), {x, 0, Infinity}, WorkingPrecision -> 120]][[1]] (* Vaclav Kotesovec, Jan 15 2019 *)

Formula

Equals Integral_{0..oo} (x^(1/x-x)) dx (definition).
Equals Integral_{0..1} (x^(1/x-x) * (1 + 1/x^2) ) dx.
Equals Integral_{0..oo} ( (x + sqrt(x^2 + 4))/2 )^(-x) dx.

Extensions

More terms from Vaclav Kotesovec, Jan 15 2019