1 Introduction

As is well known, the Bernoulli polynomials \(B_{m}(x)\) are given by the generating function

$$ \frac{t}{e^{t}-1}e^{xt}=\sum _{m=0} ^{\infty}B_{m}(x)\frac {t^{m}}{m!} \quad (\mbox{see [1--10]}). $$
(1.1)

When \(x=0\), \(B_{m}=B_{m}(0)\) are called Bernoulli numbers. For any real number x, we let

$$ \langle x\rangle = x - [x] \in[0,1) $$
(1.2)

denote the fractional part of x.

Fourier series expansion of higher-order Bernoulli functions was treated in the recent paper [11]. Here we will consider the following three types of functions given by sums of finite products of Bernoulli functions and derive their Fourier series expansions. In addition, we will express each of them in terms of Bernoulli functions.

  1. (1)

    \(\alpha_{m}(\langle x\rangle ) = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq0} B_{c_{1}}(\langle x\rangle ) B_{c_{2}} (\langle x\rangle ) \cdots B_{c_{r}}(\langle x\rangle )\) (\(m \geq1\));

  2. (2)

    \(\beta_{m}(\langle x\rangle )\) = \(\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq0} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(\langle x\rangle )B_{c_{2}}(\langle x\rangle ) \cdots B_{c_{r}} (\langle x\rangle )\) (\(m \geq1\));

  3. (3)

    \(\gamma_{r,m}(\langle x\rangle )=\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac{1}{c_{1} c_{2} \cdots c_{r}} B_{c_{1}} (\langle x\rangle )B_{c_{2}}(\langle x\rangle ) \cdots B_{c_{r}}(\langle x \rangle )\) (\(m \geq r \)).

For elementary facts about Fourier analysis, the reader may refer to any book (for example, see [12, 13]).

As to \(\beta_{m}(\langle x\rangle)\), we note that the next polynomial identity follows immediately from Theorems 3.1 and 3.2, which is in turn derived from the Fourier series expansion of \(\beta_{m}(\langle x\rangle)\):

$$ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(x) B_{c_{2}}(x) \cdots B_{c_{r}}(x) = \frac{1}{r} \Omega_{m+1} + \sum _{j=1}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} B_{j}(x), $$

where

$$ \Omega_{l} = \sum_{ \max\{0, r-l \} \leq a \leq r-1} \binom{r}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-r}\frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1}! c_{2}! \cdots c_{a}!}. $$
(1.3)

The obvious polynomial identities can be derived also for \(\alpha _{m}(\langle x\rangle)\) and \(\gamma_{m}(\langle x\rangle)\) from Theorems 2.1 and 2.2, and Theorems 4.1 and 4.2, respectively. It is remarkable that from the Fourier series expansion of the function \(\sum_{k=1}^{m-1} \frac {1}{k(m-k)}B_{k}(\langle x\rangle)B_{m-k}(\langle x\rangle)\) we can derive the Faber-Pandharipande-Zagier identity (see [1416]) and the Miki identity (see [1519]).

2 The function \(\alpha_{m}(\langle x\rangle)\)

Let \(\alpha_{m}(x) = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}(x) B_{c_{2}}(x) \cdots B_{c_{r}}(x)\) (\(m \geq1\)). Here the sum runs over all nonnegative integers \(c_{1} , c_{2} , \ldots, c_{r}\) with \(c_{1} + c_{2} + \cdots+ c_{r} = m\) (\(r \geq1\)). Then we will consider the function

$$ \alpha_{m}\bigl(\langle x\rangle\bigr) = \sum _{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}\bigl(\langle x\rangle\bigr) B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl(\langle x\rangle\bigr), $$
(2.1)

defined on \((- \infty, \infty)\), which is periodic with period 1.

The Fourier series of \(\alpha_{m}(\langle x\rangle) \) is

$$ \sum_{n= -\infty}^{\infty} A_{n}^{(m)} e^{2\pi i nx} , $$
(2.2)

where

$$ \begin{aligned}[b] A_{n}^{(m)}& = \int_{0} ^{1} \alpha_{m}\bigl(\langle x \rangle\bigr) e^{-2\pi i nx} \,dx \\ & = \int_{0} ^{1} \alpha_{m}(x) e^{-2\pi i nx} \,dx. \end{aligned} $$
(2.3)

Before proceeding further, we need to observe the following.

$$\begin{aligned} \alpha_{m}'(x) =& \sum _{c_{1} + c_{2} + \cdots+ c_{r} = m} \bigl( c_{1} B_{c_{1}-1}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ &{} + \cdots+ c_{r} B_{c_{1}}(x)B_{c_{2}}(x) \cdots B_{c_{r-1}}(x)B_{c_{r}-1}(x) \bigr) \\ =& \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1} \geq1} c_{1} B_{c_{1}-1}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ &{} + \cdots+ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{r} \geq1} c_{r} B_{c_{1}-1}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ =& (m+r-1) \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m-1} B_{c_{1}}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ = &(m+r-1) \alpha_{m-1}(x). \end{aligned}$$
(2.4)

From this, we have

$$ \biggl(\frac{\alpha_{m+1}(x)}{m+r} \biggr)' = \alpha_{m}(x) $$
(2.5)

and

$$ \int_{0} ^{1} \alpha_{m}(x) \,dx = \frac{1}{m+r} \bigl(\alpha_{m+1}(1) - \alpha_{m+1} (0) \bigr). $$
(2.6)

For \(m\geq1\), we put

$$\begin{aligned} \Delta_{m} =& \alpha_{m}(1) - \alpha_{m } (0) \\ = &\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \bigl( B_{c_{1}}(1)B_{c_{2}}(1) \cdots B_{c_{r}}(1) - B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}} \bigr) \\ = &\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \bigl( (B_{c_{1}} + \delta _{1,c_{1}}) \cdots (B_{c_{r}} + \delta_{1,c_{r}}) - B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}} \bigr) \\ =& \sum_{\substack{0 \leq a \leq r \\ a\geq r-m}} \binom{r}{a} \sum _{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r}B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}- \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m}B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}} \\ = &\sum_{ \max \{0,r-m\} \leq a \leq r-1} \binom{r}{a} \sum _{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r}B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}, \end{aligned}$$
(2.7)

where we understand that, for \(r-m\leq0\) and \(a=0\), the inner sum is \(\delta_{m,r}\).

Observe here that the sum over all \(c_{1} + c_{2} + \cdots+ c_{r} = m\) of any term with a of \(B_{c_{e}}\) and b of \(\delta_{1,c_{f}}\) (\(1 \leq e\), \(f \leq r\), \(a+b=r\)), all give the same sum

$$ \begin{aligned}[b] & \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m}B_{c_{1}} \cdots B_{c_{a}} \delta _{1,c_{a+1}} \cdots \delta_{1,c_{a+b}} \\ &\quad = \sum_{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r} B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}, \end{aligned} $$
(2.8)

which is not an empty sum as long as \(m + a - r \geq0 \), i.e., \(a \geq r - m\).

Thus

$$ \alpha_{m}(1) = \alpha_{m}(0) \quad \Longleftrightarrow\quad \Delta_{m} = 0 $$
(2.9)

and

$$ \int_{0} ^{1} \alpha_{m}(x) \,dx = \frac{1}{m+r} \Delta_{m+1}. $$
(2.10)

Now, we are ready to determine the Fourier coefficients \(A_{n}^{(m)}\).

Case 1 : \(n \neq0\).

$$\begin{aligned} A_{n}^{(m)} & = \int_{0} ^{1} \alpha_{m} (x) e^{-2\pi i nx} \,dx \\ & = - \frac{1}{2\pi i n} \bigl[\alpha_{m} (x) e^{-2\pi i nx} \bigr]_{0}^{1} + \frac{1}{2\pi i n} \int_{0} ^{1} \alpha_{m}' (x) e^{-2\pi i nx} \,dx \\ & = \frac{m+r-1}{2\pi i n} A_{n}^{(m-1)} - \frac{1}{2 \pi i n} \Delta _{m} \\ & = \frac{m+r-1}{2\pi i n} \biggl( \frac{m+r-2}{2\pi i n} A_{n}^{(m-2)} - \frac{1}{2\pi i n} \Delta_{m-1} \biggr) - \frac{1}{2\pi i n} \Delta_{m} \\ & = \frac{(m+r-1)_{2}}{(2\pi i n)^{2}} A_{n}^{(m-2)} - \sum _{j=0}^{2} \frac {(m+r-1)_{j-1}}{(2\pi i n)^{j}} \Delta_{m-j+1} \\ & =\cdots \\ & = \frac{(m+r-1)_{m}}{(2\pi i n)^{m}} A_{n}^{(0)} - \sum _{j=1}^{m} \frac {(m+r-1)_{j-1}}{(2\pi i n)^{j}} \Delta_{m-j+1} \\ & = -\frac{1}{m+r} \sum_{j=1}^{m} \frac{(m+r)_{j}}{(2\pi i n)^{j}} \Delta_{m-j+1}, \end{aligned}$$
(2.11)

where \(A_{n}^{(0)}= \int_{0} ^{1} e^{-2\pi i nx} \,dx = 0\).

Case 2: \(n = 0 \).

$$ A_{0}^{(m)} = \int_{0} ^{1} \alpha_{m} (x) \,dx = \frac{1}{m+r} \Delta_{m+1}. $$
(2.12)

Let us recall the following facts about Bernoulli functions \(B_{m}(\langle x\rangle)\):

  1. (a)

    for \(m \geq2 \),

    $$ B_{m}\bigl(\langle x\rangle\bigr) = - m! \sum _{\substack{n= - \infty\\ n \neq0}}^{\infty} \frac{e^{2\pi i nx}}{(2\pi i n)^{m}}; $$
    (2.13)
  2. (b)

    for \(m = 1 \),

    $$ - \sum_{\substack{n= - \infty\\ n \neq0}}^{\infty} \frac{e^{2\pi i nx}}{2\pi i n} = \textstyle\begin{cases} B_{1}(\langle x\rangle)& \text{for } x\notin\mathbb{Z}, \\ 0& \text{for } x\in\mathbb{Z}. \end{cases} $$
    (2.14)

\(\alpha_{m}(\langle x\rangle)\) (\(m \geq1\)) is piecewise \(C^{\infty}\). Moreover, \(\alpha_{m}(\langle x\rangle) \) is continuous for those positive integers m with \(\Delta_{m}=0\) and discontinuous with jump discontinuities at integers for those positive integers m with \(\Delta_{m} \neq0\).

Assume first that m is a positive integer with \(\Delta_{m}=0\). Then \(\alpha_{m} (1) = \alpha_{m} (0)\). Hence \(\alpha_{m} (\langle x\rangle)\) is piecewise \(C^{\infty}\) and continuous. Thus the Fourier series of \(\alpha_{m} (\langle x\rangle)\) converges uniformly to \(\alpha_{m} (\langle x\rangle)\), and

$$\begin{aligned} \alpha_{m} \bigl(\langle x\rangle\bigr) =& \frac{1}{m+r} \Delta_{m+1} \\ &{} + \sum_{n= - \infty, n \neq0}^{\infty} \Biggl( - \frac{1}{m+r} \sum_{j=1}^{m} \frac{(m+r)_{j}}{(2\pi i n)^{j}} \Delta_{m-j+1} \Biggr)e^{2\pi i nx} \\ = &\frac{1}{m+r} \Delta_{m+1} + \frac{1}{m+r} \sum _{j=1}^{m} \binom{m+r}{j} \Delta_{m-j+1} \Biggl( -j! \sum_{\substack{n= - \infty \\ n \neq 0}}^{\infty} \frac{e^{2\pi i nx}}{(2\pi i n)^{j}} \Biggr) \\ =& \frac{1}{m+r} \Delta_{m+1}+ \frac{1}{m+r} \sum _{j=2}^{m} \binom {m+r}{j} \Delta_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) \\ &{} + \Delta_{m} \times \textstyle\begin{cases} B_{1}(\langle x\rangle)& \text{for } x\notin\mathbb{Z}, \\ 0& \text{for } x\in\mathbb{Z}. \end{cases}\displaystyle \end{aligned}$$
(2.15)

We can now state our first result.

Theorem 2.1

For each positive integer l, we let

$$\Delta_{l} = \sum_{ \max \{0,r-l\} \leq a \leq r-1} \binom{r}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-r}B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}. $$

Assume that \(\Delta_{m} = 0\) for a positive integer m. Then we have the following.

  1. (a)

    \(\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}(\langle x\rangle)B_{c_{2}}(\langle x\rangle) \cdots B_{c_{r}}(\langle x\rangle)\) has the Fourier series expansion

    $$\begin{aligned}& \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}\bigl(\langle x\rangle \bigr)B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl( \langle x\rangle\bigr) \\& \quad = \frac{1}{m+r} \Delta_{m+1} - \sum _{\substack{n= - \infty\\ n \neq0}}^{\infty} \Biggl( \frac {1}{m+r} \sum _{j=1}^{m} \frac{(m+r)_{j}}{(2\pi i n)^{j}} \Delta _{m-j+1} \Biggr)e^{2\pi i nx}, \end{aligned}$$

    for all \(x \in\mathbb{R}\), where the convergence is uniform.

  2. (b)
    $$\begin{aligned}& \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}\bigl(\langle x\rangle \bigr)B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl( \langle x\rangle\bigr) \\& \quad = \frac{1}{m+r} \Delta_{m+1}+ \frac{1}{m+r} \sum _{j=2}^{m} \binom {m+r}{j} \Delta_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) , \end{aligned}$$

    for all \(x \in\mathbb{R}\), where \(B_{j}(\langle x\rangle)\) is the Bernoulli function.

Assume next that \(\Delta_{m} \neq0\) for a positive integer m. Then \(\alpha_{m} (1) \neq\alpha_{m} (0)\). Hence \(\alpha_{m} (\langle x\rangle)\) is piecewise \(C^{\infty}\) and discontinuous with jump discontinuities at integers. The Fourier series of \(\alpha_{m} (\langle x\rangle)\) converges pointwise to \(\alpha _{m} (\langle x\rangle)\) for \(x \notin\mathbb{Z}\) and converges to

$$ \frac{1}{2} \bigl(\alpha_{m} (0)+ \alpha_{m} (1) \bigr) = \alpha_{m} (0) + \frac{1}{2} \Delta_{m} $$
(2.16)

for \(x \in\mathbb{Z}\).

Now, we can state our second result.

Theorem 2.2

For each positive integer l, we let

$$\Delta_{l} = \sum_{ \max \{0,r-l\} \leq a \leq r-1} \binom{r}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-r}B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}. $$

Assume that \(\Delta_{m} \neq0\) for a positive integer m. Then we have the following.

$$\begin{aligned} (\mathrm{a})&\quad \frac{1}{m+r} \Delta_{m+1} + \sum_{\substack{n= - \infty\\ n \neq0}}^{\infty} \Biggl( - \frac{1}{m+r} \sum_{j=1}^{m} \frac{(m+r)_{j}}{(2\pi i n)^{j}} \Delta _{m-j+1} \Biggr)e^{2\pi i nx} \\ &\qquad = \textstyle\begin{cases} \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}(\langle x\rangle)B_{c_{2}}(\langle x\rangle) \cdots B_{c_{r}}(\langle x\rangle) &\textit{for } x\notin\mathbb{Z}, \\ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m}B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}}+ \frac{1}{2}\Delta_{m} &\textit{for } x\in\mathbb{Z}. \end{cases}\displaystyle \\ (\mathrm{b})&\quad \frac{1}{m+r} \Delta_{m+1}+ \frac{1}{m+r} \sum_{j=1}^{m} \binom{m+r}{j} \Delta_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) \\ &\qquad = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} B_{c_{1}}\bigl(\langle x \rangle\bigr)B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}} \bigl(\langle x\rangle\bigr) \quad \textit{for } x \notin\mathbb{Z}; \\ &\quad \frac{1}{m+r} \Delta_{m+1}+ \frac{1}{m+r} \sum _{j=2}^{m} \binom {m+r}{j} \Delta_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) \\ &\qquad = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m}B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}}+ \frac{1}{2}\Delta_{m} \quad \textit{for } x \in\mathbb{Z}. \end{aligned}$$

3 The function \(\beta_{m}(\langle x\rangle)\)

Let \(\beta_{m}(x) = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac {1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x)\) (\(m \geq1\)). Here the sum runs over all nonnegative integers \(c_{1} , c_{2} , \ldots, c_{r}\) with \(c_{1} + c_{2} + \cdots+ c_{r} = m\) (\(r \geq1\)). Then we will consider the function

$$ \beta_{m}\bigl(\langle x\rangle\bigr) = \sum _{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}\bigl(\langle x \rangle\bigr) B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}} \bigl(\langle x\rangle\bigr), $$
(3.1)

defined on \((- \infty, \infty)\), which is periodic with period 1. The Fourier series of \(\beta_{m}(\langle x\rangle)\) is

$$ \sum_{n=-\infty}^{\infty}B_{n}^{(m)}e^{2\pi i n x}, $$
(3.2)

where

$$ B_{n}^{(m)}= \int_{0}^{1}\beta_{m}\bigl(\langle x \rangle\bigr)e^{-2\pi i n x}\,dx= \int _{0}^{1}\beta_{m}(x)e^{-2\pi i n x} \,dx. $$
(3.3)

Before proceeding further, we need to observe the following.

$$ \begin{aligned}[b] \beta'_{m}(x)={}& \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \biggl( \frac {c_{1}}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}-1}(x)B_{c_{2}}(x)\cdots B_{c_{r}}(x) \\ &{} + \cdots+ \frac{c_{r}}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(x)B_{c_{2}}(x)\cdots B_{c_{r}-1}(x) \biggr) \\ ={}& \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1} \geq1} \frac{1}{(c_{1}-1)! c_{2}! \cdots c_{r}!} B_{c_{1}-1}(x)B_{c_{2}}(x)\cdots B_{c_{r}}(x) \\ &{} + \cdots+ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{r} \geq1} \frac {1}{c_{1}! c_{2}! \cdots(c_{r}-1)!} B_{c_{1}}(x)B_{c_{2}}(x)\cdots B_{c_{r}-1}(x) \\ ={}& r \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m-1}\frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(x)B_{c_{2}}(x)\cdots B_{c_{r}}(x) \\ ={}&r \beta_{m-1}(x). \end{aligned} $$
(3.4)

From this, we have

$$ \biggl(\frac{\beta_{m+1}(x)}{r} \biggr)'= \beta_{m}(x) $$
(3.5)

and

$$ \int_{0}^{1}\beta_{m}(x)\,dx= \frac{1}{r} \bigl(\beta_{m+1}(1)- \beta _{m+1}(0) \bigr). $$
(3.6)

Let

$$ \begin{aligned}[b] \Omega_{m} ={}& \beta_{m}(1)-\beta_{m}(0) \\ ={}&\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac {B_{c_{1}}(1)B_{c_{2}}(1)\cdots B_{c_{r}}(1)}{c_{1}! c_{2}! \cdots c_{r}!} - \sum _{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}}}{c_{1}! c_{2}! \cdots c_{r}!} \\ ={}&\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{(B_{c_{1}} + \delta _{1,c_{1}}) (B_{c_{2}} + \delta_{1,c_{2}})\cdots(B_{c_{r}} + \delta _{1,c_{r}})}{c_{1}! c_{2}! \cdots c_{r}!} \\ &{} - \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}}}{c_{1}! c_{2}! \cdots c_{r}!} \\ ={}& \sum_{ \max\{0, r-m \} \leq a \leq r-1} \binom{r}{a} \sum _{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r}\frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1}! c_{2}! \cdots c_{a}!}, \end{aligned} $$
(3.7)

where we understand that, for \(r-m\leq0\) and \(a=0\), the inner sum is \(\delta_{m,r}\).

Observe here that the sum over all \(c_{1} + c_{2} + \cdots+ c_{r} = m\) of any term with a of \(B_{c_{e}}\) and b of \(\delta_{1,c_{f}}\) (\(1 \leq e\), \(f \leq r\), \(a+b=r\)), all give the same sum

$$ \begin{aligned}[b] & \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{B_{c_{1}} \cdots B_{c_{a}} \delta_{1,c_{a+1}} \cdots \delta_{1,c_{a+b}} }{c_{1}! c_{2}! \cdots c_{r}!} \\ &\quad = \sum_{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r} \frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{r}}}{c_{1}! c_{2}! \cdots c_{r}!} , \end{aligned} $$
(3.8)

which is not an empty sum as long as \(m+a -r \geq0\), i.e., \(a \geq r-m\).

Also, we have

$$ \beta_{m}(1)=\beta_{m}(0)\quad \Leftrightarrow \quad \Omega_{m} = 0 $$
(3.9)

and

$$ \int_{0}^{1}\beta_{m}(x)\,dx = \frac{1}{r} \Omega_{m+1}. $$
(3.10)

Now, we would like to determine the Fourier coefficients \(B_{n}^{(m)}\).

Case 1: \(n\neq0\).

$$\begin{aligned} B_{n}^{(m)}&= \int_{0}^{1}\beta_{m}(x)e^{-2\pi i n x} \,dx \\ &=-\frac{1}{2\pi i n} \bigl[\beta_{m}(x)e^{-2\pi i n x} \bigr]_{0}^{1} +\frac{1}{2\pi i n} \int_{0}^{1}\beta'_{m}(x)e^{-2\pi i n x} \,dx \\ &=-\frac{1}{2\pi i n} \bigl(\beta_{m}(1)-\beta_{m}(0) \bigr) +\frac {r}{2\pi i n} \int_{0}^{1}\beta_{m-1}(x)e^{-2\pi i n x} \,dx \\ &=\frac{r}{2\pi i n}B_{n}^{(m-1)}- \frac{1}{2\pi i n} \Omega_{m} \\ &=\frac{r}{2\pi i n} \biggl(\frac{r}{2\pi i n}B_{n}^{(m-2)} - \frac {1}{2\pi i n} \Omega_{m-1} \biggr) - \frac{1}{2\pi i n} \Omega_{m} \\ &= \biggl(\frac{r}{2\pi i n} \biggr)^{2} B_{n}^{(m-2)} - \sum_{j=1}^{2} \frac{r^{j-1}}{(2\pi i n)^{j}} \Omega_{m-j+1} \\ &=\cdots \\ &= \biggl(\frac{r}{2\pi i n} \biggr)^{m} B_{n}^{(0)} - \sum_{j=1}^{m} \frac{r^{j-1}}{(2\pi i n)^{j}} \Omega_{m-j+1} \\ &= - \sum_{j=1}^{m} \frac{r^{j-1}}{(2\pi i n)^{j}} \Omega_{m-j+1}, \end{aligned}$$
(3.11)

where \(B_{n}^{(0)}=\int_{0}^{1}e^{-2\pi i n x}\,dx = 0\).

Case 2: \(n=0\).

$$ B_{0}^{(m)}= \int_{0}^{1}\beta_{m}(x)= \frac{1}{r} \Omega_{m+1}. $$
(3.12)

\(\beta_{m}(\langle x\rangle)\) (\(m\geq1\)) is piecewise \(C^{\infty}\). Moreover, \(\beta_{m}(\langle x\rangle)\) is continuous for those positive integers m with \(\Omega_{m} =0\) and discontinuous with jump discontinuities at integers for those positive integers m with \(\Omega_{m} \neq0\).

Assume first that \(\Omega_{m} =0\) for a positive integer m. Then \(\beta_{m}(1)=\beta_{m}(0)\). Hence \(\beta_{m}(\langle x\rangle)\) is piecewise \(C^{\infty}\) and continuous. Thus the Fourier series of \(\beta _{m}(\langle x\rangle)\) converges uniformly to \(\beta_{m}(\langle x\rangle)\), and

$$\begin{aligned} \beta_{m}\bigl(\langle x\rangle\bigr) =& \frac{1}{r} \Omega_{m+1} + \sum_{\substack{n=-\infty\\ n\neq0}}^{\infty} \Biggl(- \sum_{j=1}^{m} \frac{r^{j-1}}{(2\pi i n)^{j}} \Omega_{m-j+1} \Biggr)e^{2\pi i n x} \\ =& \frac{1}{r} \Omega_{m+1} + \sum _{j=1}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} \times \Biggl(- j! \sum_{\substack{n=-\infty\\ n\neq0}}^{\infty} \frac{e^{2\pi i n x}}{(2\pi i n)^{j}} \Biggr) \\ =&\frac{1}{r} \Omega_{m+1} + \sum_{j=2}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} B_{j}\bigl(\langle x\rangle \bigr) \\ &{} + \Omega_{m} \times \textstyle\begin{cases} B_{1}(\langle x\rangle)&\text{for } x\notin\mathbb{Z}, \\ 0&\text{for } x\in\mathbb{Z}. \end{cases}\displaystyle \end{aligned}$$
(3.13)

Now, we can state our first result.

Theorem 3.1

For each positive integer l, we let

$$ \Omega_{l} = \sum_{ \max\{0, r-l \} \leq a \leq r-1} \binom{r}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-r}\frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1}! c_{2}! \cdots c_{a}!}. $$
(3.14)

Assume that \(\Omega_{m} = 0\) for a positive integer m. Then we have the following.

  1. (a)

    \(\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(\langle x\rangle) B_{c_{2}}(\langle x\rangle) \cdots B_{c_{r}}(\langle x\rangle)\) has the Fourier series expansion

    $$ \begin{aligned}[b] &\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}\bigl(\langle x\rangle\bigr) B_{c_{2}} \bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl(\langle x\rangle\bigr) \\ &\quad = \frac{1}{r} \Omega_{m+1} - \sum _{\substack{n=-\infty\\ n\neq0}}^{\infty} \Biggl(\sum_{j=1}^{m} \frac{r^{j-1}}{(2\pi i n)^{j}}\Omega_{m-j+1} \Biggr)e^{2\pi i n x}, \end{aligned} $$
    (3.15)

    for all \(x\in(-\infty,\infty)\), where the convergence is uniform.

  2. (b)
    $$ \begin{aligned}[b] &\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}\bigl(\langle x\rangle\bigr) B_{c_{2}} \bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl(\langle x\rangle\bigr) \\ & \quad = \frac{1}{r} \Omega_{m+1} + \sum _{j=2}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr), \end{aligned} $$
    (3.16)

    for all \(x\in(-\infty,\infty)\), where \(B_{j}(\langle x\rangle)\) is the Bernoulli function.

Assume next that m is a positive integer with \(\Omega_{m} \neq0\). Then \(\beta_{m}(1)\neq\beta_{m}(0)\). Hence \(\beta_{m}(\langle x\rangle)\) is piecewise \(C^{\infty}\) and discontinuous with jump discontinuities at integers. Thus the Fourier series of \(\beta_{m}(\langle x\rangle)\) converges pointwise to \(\beta_{m}(\langle x\rangle)\) for \(x\notin\mathbb{Z}\) and converges to

$$ \begin{aligned}[b] \frac{1}{2}\bigl( \beta_{m}(0)+\beta_{m}(1)\bigr)&=\beta_{m}(0) + \frac {1}{2} \Omega_{m} \\ &= \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}B_{c_{2}}\cdots B_{c_{r}}+ \frac{1}{2} \Omega_{m} \end{aligned} $$
(3.17)

for \(x\in\mathbb{Z}\).

Now, we can state our second result.

Theorem 3.2

For each positive integer l, let

$$ \Omega_{l} = \sum_{ \max\{0, r-l \} \leq a \leq r-1} \binom{r}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-r}\frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1}! c_{2}! \cdots c_{a}!}. $$
(3.18)

Assume that \(\Omega_{m}\neq0\) for a positive integer m. Then we have the following.

$$\begin{aligned} (\mathrm{a})&\quad \frac{1}{r} \Omega_{m+1} - \sum _{n=-\infty,n\neq0}^{\infty} \Biggl(\sum_{j=1}^{m} \frac{r^{j-1}}{(2\pi i n)^{j}}\Omega_{m-j+1} \Biggr)e^{2\pi i n x} \\ &\qquad = \textstyle\begin{cases} \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}(\langle x\rangle) B_{c_{2}}(\langle x\rangle) \cdots B_{c_{r}}(\langle x\rangle) &\textit{for } x\notin \mathbb{Z}, \\ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}B_{c_{2}}\cdots B_{c_{r}} + \frac{1}{2}\Omega_{m} &\textit{for } x\in\mathbb{Z}. \end{cases}\displaystyle \end{aligned}$$

Here the convergence is pointwise.

$$\begin{aligned} (\mathrm{b})&\quad \frac{1}{r} \Omega_{m+1} + \sum _{j=1}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) \\ &\qquad =\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}\bigl(\langle x\rangle\bigr) B_{c_{2}}\bigl(\langle x \rangle\bigr) \cdots B_{c_{r}}\bigl(\langle x\rangle\bigr) \quad \textit{for } x\notin\mathbb{Z}, \\ &\quad \frac{1}{r} \Omega_{m+1} + \sum _{j=2}^{m} \frac {r^{j-1}}{j!}\Omega_{m-j+1} B_{j}\bigl(\langle x\rangle\bigr) \\ &\qquad = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m} \frac{1}{c_{1}! c_{2}! \cdots c_{r}!} B_{c_{1}}B_{c_{2}}\cdots B_{c_{r}} + \frac{1}{2} \Omega_{m} \quad \textit {for } x\in\mathbb{Z}. \end{aligned}$$

Here \(B_{j}(\langle x\rangle)\) is the Bernoulli function.

4 The function \(\gamma_{r,m}(\langle x\rangle)\)

Let \(\gamma_{r,m}(x)=\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots ,c_{r} \geq1} \frac{1}{c_{1} c_{2} \cdots c_{r}} B_{c_{1}}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x)\) (\(m \geq r \geq1\)). Here the sum is over all positive integers \(c_{1} , c_{2} , \ldots, c_{r}\) with \(c_{1} + c_{2} + \cdots+ c_{r} = m\).

$$\begin{aligned} \gamma_{r,m}'(x) =&\sum _{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac{1}{c_{2} \cdots c_{r}} B_{c_{1}-1}(x)B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ &{} + \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} c_{3} \cdots c_{r}} B_{c_{1}}(x)B_{c_{2}-1}(x) \cdots B_{c_{r}}(x) \\ &{} + \cdots+ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq 1} \frac{1}{c_{1} c_{2} \cdots c_{r-1}} B_{c_{1}}(x)B_{c_{2}}(x) \cdots B_{c_{r}-1}(x) \\ =&\sum_{c_{2} + \cdots+ c_{r} = m-1, c_{2},\ldots,c_{r} \geq1} \frac {1}{c_{2} \cdots c_{r}} B_{c_{2}}(x) \cdots B_{c_{r}}(x) \\ &{} + \sum_{c_{1} + \cdots+ c_{r} = m-1, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{2} \cdots c_{r}} B_{c_{1}}(x) \cdots B_{c_{r}}(x) \\ &{} + \cdots+ \sum_{c_{1} + c_{2} + \cdots+ c_{r-1} = m-1, c_{1},\ldots ,c_{r-1} \geq1} \frac{1}{c_{1} c_{2} \cdots c_{r-1}} B_{c_{1}}(x) \cdots B_{c_{r-1}}(x) \\ &{} + \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m-1, c_{1},\ldots,c_{r} \geq1} \frac{1}{c_{1} c_{2} \cdots c_{r-1}} B_{c_{1}}(x) \cdots B_{c_{r}}(x) \\ =& r \gamma_{r-1,m-1}(x) + (m-1)\gamma_{r,m-1}(x). \end{aligned}$$
(4.1)

Thus,

$$ \gamma_{r,m}'(x) = r \gamma_{r-1,m-1}(x) + (m-1)\gamma_{r,m-1}(x)\quad (m \geq r), $$
(4.2)

with \(\gamma_{r,r-1}(x) =0\).

Replacing m by \(m+1\), we get

$$ m \gamma_{r,m}(x) = \gamma_{r,m+1}'(x) - r \gamma_{r-1,m}(x). $$
(4.3)

Denoting \(\int_{0}^{1}\gamma_{r,m}(x)\,dx \) by \(a_{r,m}\), we have

$$ a_{r,m} = -\frac{r}{m} a_{r-1,m} + \frac{1}{m} \Lambda_{r,m+1}, $$
(4.4)

where \(\Lambda_{r,m} = \gamma_{r,m}(1) - \gamma_{r,m}(0)\). From the recurrence relation (4.4), we can easily show that

$$\begin{aligned}& \int_{0}^{1} \gamma_{r,m}(x) \,dx= \sum _{j=1}^{r-1}(-1)^{j-1} \frac {(r)_{j-1}}{m^{j}} \Lambda_{r-j+1,m+1}, \end{aligned}$$
(4.5)
$$\begin{aligned}& \Lambda_{r,m} = \gamma_{r,m}(1) - \gamma_{r,m}(0) \\& \hphantom{\Lambda_{r,m}} = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {B_{c_{1}}(1)\cdots B_{c_{r}}(1)}{c_{1} \cdots c_{r}} \\& \hphantom{\Lambda_{r,m} ={}}{} - \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac { B_{c_{1}}\cdots B_{c_{r}}}{c_{1} \cdots c_{r}} \\& \hphantom{\Lambda_{r,m} } = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} (B_{c_{1}} + \delta_{1,c_{1}}) \cdots(B_{c_{r}} + \delta_{1,c_{r}}) \\& \hphantom{\Lambda_{r,m} ={}}{} - \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac { B_{c_{1}}\cdots B_{c_{r}}}{c_{1} \cdots c_{r}} \\& \hphantom{\Lambda_{r,m} } = \sum_{0 \leq a \leq r-1} \binom{r}{a} \sum _{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r,c_{1},\ldots,c_{a} \geq1}\frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1} c_{2} \cdots c_{a}}. \end{aligned}$$
(4.6)

Observe here that the sum over all positive integers \(c_{1},\ldots,c_{r}\) satisfying \(c_{1} + c_{2} + \cdots+ c_{r} = m\) of any term with a of \(B_{c_{e}}\) and b of \(\delta_{1,c_{f}}\) (\(1 \leq e\), \(f \leq r\), \(a+b=r\)), all give the same sum

$$ \begin{aligned}[b] & \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m,c_{1},\ldots,c_{a} \geq1} \frac {B_{c_{1}} \cdots B_{c_{a}} \delta_{1,c_{a+1}} \cdots \delta_{1,c_{a+b}} }{c_{1} c_{2} \cdots c_{r}} \\ &\quad = \sum_{c_{1} + c_{2} + \cdots+ c_{a} = m+a-r,c_{1},\ldots,c_{a} \geq1} \frac{B_{c_{1}}B_{c_{2}} \cdots B_{c_{a}}}{c_{1} c_{2} \cdots c_{a}} , \end{aligned} $$
(4.7)

and that, as \(m+a -r \geq a\), there are no empty sums.

Here we note that, for \(a=0\), the inner sum is \(\delta_{m,r}\) since it corresponds to the sums

$$ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m,c_{1},\ldots,c_{r} \geq1}\frac {\delta_{1,c_{1}}\delta_{1,c_{2}} \cdots\delta_{1,c_{r}}}{c_{1} c_{2} \cdots c_{r}}. $$
(4.8)

Also, \(\gamma_{r,m}(1) = \gamma_{r,m}(0) \Leftrightarrow\Lambda _{r,m} =0\).

Now, we would like to consider the function

$$ \gamma_{r,m}\bigl(\langle x\rangle\bigr)= \sum _{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots ,c_{r} \geq1} \frac{1}{c_{1} c_{2} \cdots c_{r}} B_{c_{1}}\bigl(\langle x \rangle\bigr)B_{c_{2}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}} \bigl(\langle x\rangle\bigr), $$
(4.9)

defined on \((-\infty,\infty)\), which is periodic with period 1.

The Fourier series of \(\gamma_{r,m}(\langle x\rangle)\) is

$$ \sum_{n=-\infty}^{\infty}C_{n}^{(r,m)}e^{2\pi i n x}, $$
(4.10)

where

$$ C_{n}^{(r,m)}= \int_{0}^{1}\gamma_{r,m}\bigl(\langle x \rangle\bigr)e^{-2\pi i n x}\,dx= \int _{0}^{1}\gamma_{r,m}(x)e^{-2\pi i n x} \,dx. $$
(4.11)

Now, we are going to determine the Fourier coefficients \(C_{n}^{(r,m)}\).

Case 1: \(n\neq0\).

$$\begin{aligned} C_{n}^{(r,m)} =& \int_{0}^{1}\gamma_{r,m}(x)e^{-2\pi i n x} \,dx \\ =&-\frac{1}{2\pi i n} \bigl[\gamma_{r,m}(x)e^{-2\pi i n x} \bigr]_{0}^{1} +\frac{1}{2\pi i n} \int_{0}^{1}\gamma'_{r,m}(x)e^{-2\pi i n x} \,dx \\ =&-\frac{1}{2\pi i n} \bigl(\gamma_{r,m}(1)- \gamma_{r,m}(0) \bigr) +\frac{1}{2\pi i n} \int_{0}^{1} \bigl(r \gamma_{r-1,m-1}(x) + (m-1)\gamma_{r,m-1}(x) \bigr) \\ &{}\times e^{-2\pi i n x}\,dx \\ =& - \frac{1}{2 \pi i n} \Lambda_{r,m} + \frac{1}{2\pi i n}C_{n}^{(r,m-1)} + \frac{r}{2\pi i n}C_{n}^{(r-1,m-1)}. \end{aligned}$$
(4.12)

From this, we obtain

$$\begin{aligned} C_{n}^{(r,m)} =& \frac{m-1}{2\pi i n}C_{n}^{(r,m-1)} + \frac{r}{2\pi i n}C_{n}^{(r-1,m-1)}- \frac{1}{2 \pi i n} \Lambda_{r,m} \\ =&\frac{m-1}{2\pi i n} \biggl( \frac{m-2}{2\pi i n} C_{n}^{(r,m-2)}+ \frac{r}{2\pi i n}C_{n}^{(r-1,m-2)} - \frac{1}{2 \pi i n} \Lambda _{r,m-1} \biggr) \\ &{} + \frac{r}{2\pi i n}C_{n}^{(r-1,m-1)} - \frac{1}{2 \pi i n} \Lambda _{r,m} \\ =& \frac{(m-1)_{2}}{(2\pi i n)^{2}} C_{n}^{(r,m-2)} + \sum _{j=1}^{2} \frac{r(m-1)_{j-1}}{(2\pi i n)^{j}} C_{n}^{(r-1,m-j)} - \sum_{j=1}^{2} \frac{(m-1)_{j-1}}{(2\pi i n)^{j}} \Lambda_{r,m-j+1} \\ = &\cdots \\ =& \frac{(m-1)_{m-r}}{(2\pi i n)^{m-r}} C_{n}^{(r,r)} + \sum _{j=1}^{m-r} \frac{r(m-1)_{j-1}}{(2\pi i n)^{j}} C_{n}^{(r-1,m-j)} - \sum_{j=1}^{m-r} \frac{(m-1)_{j-1}}{(2\pi i n)^{j}} \Lambda _{r,m-j+1}. \end{aligned}$$
(4.13)

Here,

$$\begin{aligned} C_{n}^{(r,r)}& = \int_{0}^{1} \biggl(x -\frac{1}{2} \biggr)^{r} e^{-2\pi i n x}\,dx \\ & = -\frac{1}{2\pi i n} \biggl[\biggl(x -\frac{1}{2}\biggr)^{r} e^{-2\pi i n x} \biggr]_{0}^{1} + \frac{r}{2\pi i n} \int_{0}^{1} \biggl(x -\frac{1}{2} \biggr)^{r-1} e^{-2\pi i n x}\,dx \\ & = -\frac{1}{2\pi i n} \biggl( \biggl(\frac{1}{2}\biggr)^{r} - \biggl(-\frac{1}{2}\biggr)^{r} \biggr) + \frac{r}{2\pi i n} C_{n}^{(r-1,r-1)}, \end{aligned}$$
(4.14)

and

$$ \Lambda_{r,r} = \gamma_{r,r}(1) - \gamma_{r,r}(0) = \biggl(\frac{1}{2}\biggr)^{r} - \biggl(-\frac{1}{2}\biggr)^{r}. $$
(4.15)

Thus

$$ C_{n}^{(r,r)} = -\frac{1}{2\pi i n} \Lambda_{r,r} + \frac{r}{2\pi i n} C_{n}^{(r-1,r-1)}. $$
(4.16)

Finally, we obtain, for \(n \neq0\),

$$ C_{n}^{(r,m)} = \sum _{j=1}^{m-r+1} \frac{r (m-1)_{j-1}}{(2\pi i n)^{j}} C_{n}^{(r-1,m-j)} - \sum_{j=1}^{m-r+1} \frac{(m-1)_{j-1}}{(2\pi i n)^{j}} \Lambda_{r,m-j+1}. $$
(4.17)

Also, we note that, for \(n \neq0\),

$$ C_{n}^{(1,m)} = \frac{1}{m} \int_{0}^{1} B_{m}(x)e^{-2\pi i n x}\,dx = - \frac{(m-1)!}{(2\pi i n)^{m}}. $$
(4.18)

Thus, for \(n \neq0\), (4.17) together with (4.18) determine all \(C_{n}^{(r,m)}\) recursively.

Case 2: \(n = 0 \).

$$ C_{0}^{(r,m)}= \int_{0}^{1} \gamma_{r,m}(x) \,dx = \sum _{j=1}^{r}(-1)^{j-1} \frac{ (r)_{j-1}}{m^{j}} \Lambda_{r-j+1,m+1}. $$
(4.19)

\(\gamma_{r,m}(\langle x\rangle)\) (\(m\geq r \geq1\)) is piecewise \(C^{\infty}\). In addition, \(\gamma_{r,m}(\langle x\rangle)\) is continuous for those positive integers r, m with \(\Lambda_{r,m} = 0\) and discontinuous with jump discontinuities at integers for those positive integers \(r,m\) with \(\Lambda_{r,m} \neq0\).

Assume first that \(\Lambda_{r,m} = 0 \) for some integers r, m with \(m \geq r \geq1\). Then \(\gamma_{r,m}(1)=\gamma_{r,m}(0)\). Hence \(\gamma _{r,m}(\langle x\rangle)\) is piecewise \(C^{\infty}\) and continuous. Thus the Fourier series of \(\gamma_{m}(\langle x\rangle)\) converges uniformly to \(\gamma_{m}(\langle x\rangle)\), and

$$\gamma_{m}\bigl(\langle x\rangle\bigr) = C_{0}^{(r,m)} + \sum_{\substack{n=-\infty\\ n\neq 0}}^{\infty}C_{n}^{(r,m)}e^{2\pi i n x}, $$

where \(C_{0}^{(r,m)}\) is given by (4.19), and \(C_{n}^{(r,m)}\), for each \(n \neq0\), are determined by relations (4.17) and (4.18).

Now, we are ready to state our first theorem.

Theorem 4.1

For all integers s, l, with \(l \geq s \geq1 \), we let

$$ \begin{aligned}[b] \Lambda_{s,l} &= \sum _{ 0 \leq a \leq s-1} \binom{s}{a} \sum _{c_{1} + \cdots+ c_{a} = l+a-s, c_{1},\ldots,c_{a} \geq1} \frac{B_{c_{1}} \cdots B_{c_{a}}}{c_{1} \cdots c_{a}} \\ &= \delta_{s,l} + \sum_{1 \leq a \leq s-1} \binom{s}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-s, c_{1},\ldots,c_{a} \geq1} \frac{B_{c_{1}} \cdots B_{c_{a}}}{c_{1} \cdots c_{a}}. \end{aligned} $$
(4.20)

Assume that \(\Lambda_{r,m} = 0 \) for some integers \(r,m\) with \(m \geq r \geq1\). Then we have the following.

\(\sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} \cdots c_{r}} B_{c_{1}}(\langle x\rangle) \cdots B_{c_{r}}(\langle x\rangle)\) has the Fourier series expansion

$$ \begin{aligned} & \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} \cdots c_{r}} B_{c_{1}}\bigl(\langle x\rangle\bigr) \cdots B_{c_{r}}\bigl(\langle x\rangle\bigr) \\ &\quad = C_{0}^{(r,m)} + \sum_{n=-\infty,n\neq0}^{\infty }C_{n}^{(r,m)}e^{2\pi i n x}, \end{aligned} $$

where \(C_{0}^{(r,m)}= \sum_{j=1}^{r-1} (-1)^{j-1}\frac{ (r)_{j-1}}{ m^{j}} \Lambda_{r-j+1,m+1}\), with \(C_{0}^{(1,m)}= 0\), and \(C_{n}^{(r,m)}\), for each \(n \neq0\), are determined recursively from

$$ C_{n}^{(r,m)} = \sum _{j=1}^{m-r+1} \frac{r(m-1)_{j-1}}{(2\pi i n)^{j}} C_{n}^{(r-1,m-j)} - \sum_{j=1}^{m-r+1} \frac{(m-1)_{j-1}}{(2\pi i n)^{j}} \Lambda _{r,m-j+1}, $$
(4.21)

and

$$ C_{n}^{(1,m)} = - \frac{(m-1)!}{(2\pi i n)^{m}}. $$
(4.22)

Here the convergence is uniform.

Next, assume that \(\Lambda_{r,m} \neq0 \) for some integers \(r,m\) with \(m \geq r \geq1\). Then \(\gamma_{r,m}(1) \neq\gamma_{r,m}(0)\). Hence \(\gamma_{r,m}(\langle x\rangle)\) is piecewise \(C^{\infty}\) and discontinuous with jump discontinuities at integers. Then the Fourier series of \(\gamma_{r,m}(\langle x\rangle)\) converges pointwise to \(\gamma_{r,m}(\langle x\rangle)\) for \(x\notin\mathbb{Z}\) and converges to

$$ \begin{aligned}[b] \frac{1}{2}\bigl( \gamma_{r,m}(0)+\gamma_{r,m}(1)\bigr)&=\gamma_{r,m}(0) + \frac{1}{2} \Lambda_{r,m} \\ & = \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} \cdots c_{r}} B_{c_{1}} \cdots B_{c_{r}} + \frac{1}{2} \Lambda_{r,m} \end{aligned} $$
(4.23)

for \(x\in\mathbb{Z}\).

Now, we can state our second result.

Theorem 4.2

For all integers s, l with \(l \geq s \geq1 \), we let

$$ \begin{aligned}[b] \Lambda_{s,l} &= \sum _{ 0 \leq a \leq s-1} \binom{s}{a} \sum _{c_{1} + c_{2} + \cdots+ c_{a} = l+a-s, c_{1},\ldots,c_{a} \geq1} \frac{B_{c_{1}} \cdots B_{c_{a}}}{c_{1} \cdots c_{a}} \\ &= \delta_{s,l} + \sum_{1 \leq a \leq s-1} \binom{s}{a} \sum_{c_{1} + c_{2} + \cdots+ c_{a} = l+a-s, c_{1},\ldots,c_{a} \geq1} \frac{B_{c_{1}} \cdots B_{c_{a}}}{c_{1} \cdots c_{a}}. \end{aligned} $$
(4.24)

Assume that \(\Lambda_{r,m} \neq0 \) for some integers r, m with \(m \geq r \geq1\). Let \(C_{0}^{(r,m)}\), \(C_{n}^{(r,m)}\) (\(n \neq0\)) be as in Theorem  4.1. Then we have the following.

$$ \begin{aligned}[b] &C_{0}^{(r,m)} + \sum_{n=-\infty,n\neq0}^{\infty }C_{n}^{(r,m)}e^{2\pi i n x} \\ &\quad = \textstyle\begin{cases} \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} \cdots c_{r}} B_{c_{1}}(x) \cdots B_{c_{r}}(x) &\textit{for } x\notin\mathbb{Z}, \\ \sum_{c_{1} + c_{2} + \cdots+ c_{r} = m, c_{1},\ldots,c_{r} \geq1} \frac {1}{c_{1} \cdots c_{r}} B_{c_{1}} \cdots B_{c_{r}}+ \frac{1}{2} \Lambda _{r,m}&\textit{for } x\in\mathbb{Z}. \end{cases}\displaystyle \end{aligned} $$
(4.25)