Somos’ quadratic recurrence constant
σ arises in the study of the asymptotic behavior of the sequence (see [
8, p. 446] and [
21,
27]):
$$\begin{aligned} g_{n}\sim{}& \frac{\sigma ^{2^{n}}}{n} \biggl(1+ \frac{2}{n}-\frac{1}{n^{2}}+\frac{4}{n ^{3}}- \frac{21}{n^{4}}+\frac{138}{n^{5}}-\frac{1091}{n^{6}}+ \frac{10\text{,}088}{n ^{7}}-\frac{106\text{,}918}{n^{8}} \\ &{}+\frac{1\text{,}279\text{,}220}{n^{9}}-\frac{17\text{,}070\text{,}418}{n^{10}}+\frac{251\text{,}560\text{,}472}{n ^{11}}- \frac{4\text{,}059\text{,}954\text{,}946}{n^{12}}+\cdots \biggr)^{-1}, \end{aligned}$$
(1.1)
where
\(g_{n}\) are recursively defined by
$$\begin{aligned} g_{0}=1,\qquad g_{n}=ng_{n-1}^{2},\quad n=1,2,\ldots, \end{aligned}$$
(1.2)
with the first few terms
$$\begin{aligned} g_{0}=1,\qquad g_{1}=1,\qquad g_{2}=2,\qquad g_{3}=12, \qquad g_{4}=576,\qquad g_{5}=1 \text{,}658\text{,}880,\ldots . \end{aligned}$$
The constant
σ is usually defined by
$$\begin{aligned} \sigma =\sqrt{1\sqrt{2\sqrt{3\sqrt{4\cdots }}}}=\prod _{k=1} ^{\infty }k^{\frac{1}{2^{k}}}=1.66168794\cdots \end{aligned}$$
(1.3)
or
$$\begin{aligned} \sigma =\exp \biggl\{ - \int _{0}^{1}\frac{1-x}{(2-x)\ln x}\,dx \biggr\} = \exp \biggl\{ - \int _{0}^{1} \int _{0}^{1}\frac{x}{(2-xy)\ln (xy)}\,dx\,dy \biggr\} . \end{aligned}$$
(1.4)
See [
9,
20‐
22]. The constant
σ appears in many important problems in pure and applied analysis and it has been investigated by a large number of researchers [
3,
5,
9,
10,
12,
13,
15,
17‐
19,
25,
30].
Recently, Sondow and Hadjicostas [
25] introduced and studied the generalized-Euler-constant function
\(\gamma (z)\) defined by the power series
$$\begin{aligned} \gamma (z)=\sum_{k=1}^{\infty }z^{k-1} \biggl(\frac{1}{k}-\ln \frac{k+1}{k} \biggr) \end{aligned}$$
(1.5)
when
\(|z|\leq 1\). There exist integral representations for the function
$$\begin{aligned} \gamma (z)= \int _{0}^{1}\frac{1-x+\ln x}{(1-xz)\ln x}\,dx=- \int _{0}^{1} \int _{0}^{1}\frac{1-x}{(1-xyz)\ln (xy)}\,dx\,dy. \end{aligned}$$
(1.6)
Its values include Euler’s constant
\(\gamma =\gamma (1)\) and the “alternating Euler constant”
\(\log \frac{4}{\pi }=\gamma (-1)\), see for example [
23,
24]. In particular, at
\(z=1/2\), the function takes the value
$$\begin{aligned} \gamma \biggl(\frac{1}{2} \biggr)=2\ln \frac{2}{\sigma }, \end{aligned}$$
(1.7)
which is equivalent to
$$\begin{aligned} \sigma =2\exp \biggl\{ -\frac{1}{2}\gamma \biggl( \frac{1}{2} \biggr) \biggr\} . \end{aligned}$$
(1.8)
Mortici [
15] proved that, for
\(n\geq 1\), it follows that
$$\begin{aligned} \frac{270(n+1)}{2^{n}(270n^{3}+1530n^{2}+1065n+6293)}< \gamma \biggl(\frac{1}{2} \biggr)- \gamma _{n} \biggl(\frac{1}{2} \biggr)< \frac{18}{2^{n}(18n^{2}+84n-13)}, \end{aligned}$$
(1.9)
where the partial sum of
\(\gamma (z)\)
$$\begin{aligned} \gamma _{n}(z)=\sum_{k=1}^{n} z^{k-1} \biggl(\frac{1}{k}-\ln \frac{k+1}{k} \biggr),\quad \vert z \vert \leq 1. \end{aligned}$$
Lu and Song [
13] improved Mortici’s estimate and proved that, for
\(n\geq 1\),
$$\begin{aligned} \frac{690n^{2}+3524n+145}{6(2^{n})(n+1)^{2}(115n^{2}+894n+779)}&< \gamma \biggl(\frac{1}{2} \biggr)-\gamma _{n} \biggl(\frac{1}{2} \biggr) \\ &< \frac{48n+127}{3(2^{n})(16n+85)(n+1)^{2}}. \end{aligned}$$
(1.10)
You and Chen [
30] improved these inequalities by using continued fraction. Very recently, Chen and Han [
5] obtained new lower bounds for
\(\gamma (1/2)-\gamma _{n}(1/2)\):
$$\begin{aligned} &\frac{1}{2^{n}} \biggl(\frac{1}{(n+1)^{2}}- \frac{8}{3(n+1)^{3}}+ \frac{23}{2(n+1)^{4}}-\frac{332}{5(n+1)^{5}}+ \frac{479}{(n+1)^{6}}- \frac{29\text{,}024}{7(n+1)^{7}} \biggr) \\ & \quad< \gamma \biggl(\frac{1}{2} \biggr)-\gamma _{n} \biggl( \frac{1}{2} \biggr) \\ &\quad < \frac{1}{2^{n}} \biggl(\frac{1}{(n+1)^{2}}- \frac{8}{3(n+1)^{3}}+ \frac{23}{2(n+1)^{4}}-\frac{332}{5(n+1)^{5}}+ \frac{479}{(n+1)^{6}} \biggr). \end{aligned}$$
(1.11)
In their paper, Chen and Han pointed out that the lower bound in (
1.11) is sharper than the one in (
1.10) for
\(n\geq 24\), and the upper bound in (
1.11) is sharper than the one in (
1.10) for
\(n\geq 18\). Moreover, they gave the following asymptotic expansion:
$$\begin{aligned} &\gamma \biggl(\frac{1}{2} \biggr)-\gamma _{n} \biggl(\frac{1}{2} \biggr) \\ &\quad \sim \frac{1}{2^{n}} \biggl\{ \frac{a_{2}}{(n+1)^{2}}+\frac{a _{3}}{(n+1)^{3}}+ \frac{a_{4}}{(n+1)^{4}}+\frac{a_{5}}{(n+1)^{5}}+\frac{a _{6}}{(n+1)^{6}}+\cdots \biggr\} ,\quad n\rightarrow \infty \end{aligned}$$
(1.12)
with a recursive formula for successively determining the coefficients
$$\begin{aligned} \begin{aligned} &a_{2}=1, \\ &a_{k}=\frac{2(-1)^{k}}{k}+\sum_{j=2}^{k-1}(-1)^{k-j} \binom{k-1}{k-j}a_{j},\quad k\geq 3. \end{aligned} \end{aligned}$$
(1.13)
Recently, there have been several interesting works related to approximations of Euler’s constant
\(\gamma =\gamma (1)\), see for example [
4,
16,
28] and the references therein. Also, some works related to approximations of
\(\gamma (z)\) at special values
\(1/2\),
\(1/3\), and
\(1/4\) appear in [
3,
5,
13‐
15,
29,
30]. Motivated by these, the first aim of this paper is to give an approximation for
\(\gamma (z)\) when
\(0< z<1\). Specifically, we give a general inequality for the error bound of
\(\gamma (z)-\gamma _{N-1}(z)\). The second aim is to establish an asymptotic expansion for
\(\gamma (z)- \gamma _{N-1}(z)\) whose coefficients can be computed explicitly and recursively. In particular, we generalize inequality (
1.11) and asymptotic expansion (
1.12) due to Chen and Han. Using the relation between the generalized Somos’ quadratic recurrence constant and the generalized-Euler-constant function established by Sondow and Hadjicostas [
25], we find approximate estimates for the generalized Somos’ quadratic recurrence constant and its natural logarithm, respectively. Moreover, two asymptotic expansions for the natural logarithm of the generalized Somos’ quadratic recurrence constant are presented.