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.

Showing 1-1 of 1 results.

A248791 Decimal expansion of P_2(xi), the maximum limiting probability that a random n-permutation has exactly two cycles exceeding a given length.

Original entry on oeis.org

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

Views

Author

Jean-François Alcover, Oct 14 2014

Keywords

Examples

			0.0727887386608213733667186633181914296889295494487...
		

Crossrefs

Programs

  • Mathematica
    xi = 1/(1 + Sqrt[E]); P2[x_] := -Pi^2/12 + (1/2)*Log[x]^2 + PolyLog[2, x]; Join[{0}, RealDigits[P2[xi], 10, 100] // First]
  • Python
    from mpmath import *
    mp.dps=101
    xi=1/(1 + sqrt(e))
    C = -pi**2/12 + (1/2)*log(xi)**2 + polylog(2, xi)
    print([int(n) for n in list(str(C)[2:-1])]) # Indranil Ghosh, Jul 03 2017

Formula

-Pi^2/12 + (1/2)*log(1 + sqrt(e))^2 + Li_2(1/(1 + sqrt(e))).
Showing 1-1 of 1 results.