OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Harmonic Mean.
Eric Weisstein's World of Mathematics, Lerch Transcendent.
Wikipedia, Harmonic mean.
FORMULA
a(n) = denominator(1/(1/2^n - Re(Phi(2, 1, n+1)))), where Phi(z, s, a) is the Lerch transcendent.
EXAMPLE
a(0) = 1,
a(1) = 2/(1/1 + 1/1) = 1,
a(2) = 2/(1/1 + 1/2) = 4/3,
a(3) = 2/(1/(4/3) + 1/3) = 24/13,
a(4) = 2/(1/(24/13) + 1/4) = 48/19, etc.
This sequence gives the denominators: 1, 1, 3, 13, 19, ...
MATHEMATICA
Table[1/(1/2^n - Re[LerchPhi[2, 1, n + 1]]), {n, 0, 26}] // Denominator (* or *)
a[0] = 1; a[n_Integer] := a[n] = 2/(1/a[n-1] + 1/n); Table[a[n], {n, 0, 26}] // Denominator
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Vladimir Reshetnikov, Apr 08 2022
STATUS
approved