OFFSET
0,2
COMMENTS
Psi denotes the digamma function.
LINKS
Stanislav Sykora, Table of n, a(n) for n = -1..2000
Wikipedia, Digamma function.
FORMULA
Equals 2 + psi(1/2) = 2 - 2*log(2) - EulerGamma = 2 - A020759, (since psi(1 + x) = psi(x) + 1/x).
Equals PolyGamma(3/2). - Peter Luschny, Apr 14 2020
Equals Sum_{k>=1} (zeta(2*k+1)-1)/((k+1)*(2*k+1)). - Amiram Eldar, May 24 2021
Equals 4*Pi*Integral_{x>=0} (log(1 + i*x) / (exp(-Pi*x) + exp(Pi*x))^2). - Peter Luschny, Aug 04 2021
Equals lim_{n->oo} (log(n) - Sum_{k=1..n} 1/(k+1/2)). - Amiram Eldar, Mar 04 2023
EXAMPLE
0.0364899739785765205590236670012444328068403953395658929528727461...
MATHEMATICA
RealDigits[2 - (EulerGamma + 2Log[2]), 10, 100][[1]] (* Alonso del Arte, Oct 03 2014 *)
PROG
(PARI) psi(-1/2)
(Magma) SetDefaultRealField(RealField(100)); R:= RealField(); 2 - (2*Log(2) + EulerGamma(R)); // G. C. Greubel, Aug 30 2018
CROSSREFS
KEYWORD
AUTHOR
Stanislav Sykora, Oct 03 2014
STATUS
approved