I asked another question related this question. $r=1$ was considered in the related question.You may see proofs for $r=1$.
I would like to generalize the conjecture when $r$ is any positive integer in this question.
Generalized Conjecture: $$f(m)=\sum\limits_{n = 1 }^ m (-1)^n \sin\left(P_r(n) \frac{a \pi}{b}\right) \tag 1 $$
I have a conjecture that if $P_r(n)=\sum\limits_{k = 1 }^ n k^{2r}$ where r is a positive integer,
$f(m)$ function is periodic function when $a,b,m$ positive integers and
$ \sum\limits_{k = 1 }^T f(k)=0 $
where ($T$) is the period value.
I tested a lot of polynomials that is different than $P_r(n)$ but they failed in my tests. I have not found any polynomial which is different from $c.P_r(n)$ that satisfy $\sum\limits_{k = 1 }^T f(k)=0 $ for all $a,b,m$ positive integers and c is a rational number.
- Please help me how the generalized conjecture can proven or disproved .
- Please find a counter_example polynomial that is different from $c.P_r(n)$ that satisfies $\sum\limits_{k = 1 }^T f(k)=0 $ for all possible $a,b,m$ positive integers and c is a rational number. .
Thanks a lot for answers.
Test WolframAlpha link for $P_1(n)=\sum\limits_{k = 1 }^ n k^{2}$
Test WolframAlpha link for $P_2(n)=\sum\limits_{k = 1 }^ n k^{4}$
Test WolframAlpha link for $P_3(n)=\sum\limits_{k = 1 }^ n k^{6}$
Please note that while checking the links, see partial sum graphics in web page for finding period and symmetry while testing some $a,b,m$ values.
My conjecture can be rewritten in the other form as @Gerry Myerson pointed in comment:
$$f(m)=\sum\limits_{n = 1 }^ m (-1)^n \sin\left(P_r(n) \frac{a \pi}{b}\right) \tag 2 $$
\begin{align*} u(m) = \sum_{n=1}^{m} (-1)^n e^{i P_r(n) \frac{a \pi}{b}} \end{align*}
\begin{align*} f(m) = \operatorname{Im}\left( u(m) \right) \end{align*}
if $P_r(n)=\sum\limits_{k = 1 }^ n k^{2r}$ where r is a positive integer,
$u(m)$ function is periodic complex function when $a,b,m$ positive integers and
$ \operatorname{Im}\left(\sum\limits_{k = 1 }^T u(k)\right)=0 $
where ($T$) is the period value for all $a,b,m$ positive integers.
EDIT:
I have found out a counter-example and It shows my generalized conjecture can be extended more. I have tested with many numerical values that It supports my extended conjecture below.
$$f(m)=\sum\limits_{n = 1 }^ m (-1)^n \sin\left(G(n) \frac{a \pi}{b}\right) \tag 2 $$
$$G(n)=\frac{n(n+1)(2n+1)(3n^2+3n-4)}{30}$$ It also satisfies my generalized conjecture $(1)$ above. $G(n)$ can be written as:
$$G(n)=\frac{n(n+1)(2n+1)(3n^2+3n-1)}{30}-\frac{3}{5}\frac{n(n+1)(2n+1)}{6}=\sum\limits_{k = 1 }^ n k^{4}-\frac{3}{5}\sum\limits_{k = 1 }^ n k^{2}=P_2(n)-\frac{3}{5}P_1(n)$$
Test link for $a=2,b=5$ and $m=500$
The numerical values and my works on the subject estimates the extension of the conjecture above. It is just strong sense without proof that it must be true.
More generalized conjecture can be written:
Extended Conjecture: $$f(m)=\sum\limits_{n = 1 }^ m (-1)^n \sin\left(\sum\limits_{k = 1 }^\infty \frac{a_k \pi}{b_k}P_k(n) \right) \tag 3 $$
More extended conjecture claims that if $P_r(n)=\sum\limits_{k = 1 }^ n k^{2r}$ where r is a positive integer,
$f(m)$ function is periodic function when $a_k$ is any integers, $b_k$ is non-zero integers and $m$ positive integers.$\sum\limits_{k = 1 }^T f(k)=0 $ where ($T$) is the period value for all possible $a_k,b_k,m$ integers.
I have been still looking for $G(n)$ polynomials that is different from $G(n)=\sum\limits_{k = 1 }^\infty \frac{a_k}{b_k}P_k(n)$ satisfies $ \sum\limits_{k = 1 }^T f(k)=0 $ $\tag{4}$ for all $a,b,m$ positive integers (Please consider Equation $(2)$)
Please note that another question has been posted for extended conjecture (Equation ($3$)). Thanks for answers
Fix two relatively primes $a$ and $b$. Let $P$ be a polynomial and introduce the following symbols
$$ \theta_n = \frac{a}{b}P(n) + n, \qquad e_n = \exp(i\pi\theta_n), \qquad F_n = \sum_{k=1}^{n} e_k. $$
We introduce some key properties to focus on.
The following result tells why we are interested in the properties listed above.
Proof. Write $U = T/2$. Notice that $e_U^2 = e_T = e_0 = 1$ and hence $e_U \in \{ -1, 1\}$. But if $e_U = 1$, then $e_{n+U} = e_n$ and hence $U$ is also a period of $\{e_n\}$, contradicting the minimality of $T$. So we must have $e_U = -1$. Then $e_{U+n} = -e_n$ and hence
$$ F_{T+m} - F_m = F_T = \sum_{n=1}^{U} (e_n + e_{U+n}) = 0. $$
So $\{F_m\}$ has period $T$. Next, we find that $e_{U} = e_{U-1}\overline{e_{-1}} = -e_U$. So
$$ F_U = \sum_{n=1}^{U} e_n = \sum_{n=-1}^{U-2} e_n = \sum_{n=1}^{U} e_{U-1-n} = \sum_{n=1}^{U} \overline{e_n} = \overline{F_U} $$
and hence $\operatorname{Im}(F_U) = 0$. This implies
$$ \sum_{n=1}^{T} F_n = \sum_{n=1}^{U} (F_n + F_{U+n}) = \sum_{n=1}^{U} (F_n + F_U - F_n) = U F_U. $$
Taking imaginary parts leads to the desired identity. ////
At this point, we only have conditional result and have not established nothing substantial. In this regard, we prove the following result.
We spend the rest of this answer for establishing this claim.
Proof. The claim for $P_2$ is already proved in my previous answer. We adopt a similar argument here with some modification.
Let $P$ be any polynomial such that $P(\mathbb{Z}) \subseteq \mathbb{Z}$. Let $d = \deg P$. By Newton's forward difference formula, we can write $ P(n) = \sum_{k=0}^{d} c_k \binom{n}{k} $ for some integers $c_0, \cdots, c_d$. So
$$ P(n+T) - P(n) = \sum_{k=0}^d c_k \cdot \frac{(n+T)\cdots(n+T-k+1) - n\cdots(n-k+1)}{k!}. $$
Now we choose $T = 2b \cdot d!$. Then for each $k = 0, \cdots, d$ we have $\frac{1}{k!}T \in 2b \mathbb{Z}$ and thus
$$ \theta_{n+T} - \theta_n = \frac{a}{b} (P(n+T) - P(n)) + T \equiv 0 \pmod{2}. $$
This proves that $T$ is a period of $\{e_n\}$. (Of course, this choice needs not be the minimal one.)
It is obvious that $P_4(0) = P_4(-1) = 0$. This proves $e_0 = 1$ and $e_{-1} = -1$.
Now we pick $P = P_4$. Let $T$ be any period of $\{e_n\}$. This is equivalent to saying that
$$ Q(n) := \theta_{n+T} - \theta_n \equiv 0 \pmod{2} \quad \forall n \in \mathbb{Z}. \tag{1} $$
Since $Q$ is a polynomial, we may expand $Q$ using Newton's forward difference formula. The resulting expression is
$$ Q(n) = \sum_{k=0}^{\deg P - 1} \Delta^k Q (0) \binom{n}{k}, \qquad \text{where} \quad \Delta^k Q(0) = \sum_{j=0}^{k} (-1)^{k-j}\binom{k}{j}Q(j) $$
In view of this, $\text{(1)}$ is equivalent to proving that $\Delta^k Q(0) \equiv 0 \pmod{2}$ for all $j$. For $P = P_4$, this reduces to
\begin{align*} \begin{array}{rrrrrrl} \Delta^0 Q(0) = & \frac{aT^5}{5b} & + \frac{aT^4}{2b} & + \frac{aT^3}{3b} & & - \frac{aT}{30b} + T &\equiv 0 \pmod {2} \\ \Delta^1 Q(0) = & & \frac{aT^4}{b} & + \frac{4aT^3}{b} & + \frac{6aT^2}{b} & + \frac{4aT}{b} &\equiv 0 \pmod {2} \\ \Delta^2 Q(0) = & & & \frac{4aT^3}{b} & + \frac{18aT^2}{b} & + \frac{28aT}{b} &\equiv 0 \pmod {2} \\ \Delta^3 Q(0) = & & & & \frac{12aT^2}{b} & + \frac{48aT}{b} &\equiv 0 \pmod {2} \\ \Delta^4 Q(0) = & & & & & \frac{24aT}{b} &\equiv 0 \pmod {2} \end{array} \end{align*}
With some fun algebra, we can reduce this egregious system of equations into a much simpler ones:
\begin{align*} \begin{array}{rl} \frac{aT^5}{5b} + \frac{aT^4}{2b} + \frac{aT^3}{3b} - \frac{aT}{30b} + T & \equiv 0 \pmod {2} \\ \frac{aT^4}{b} & \equiv 0 \pmod {2} \\ \frac{2aT}{b} & \equiv 0 \pmod {2} \end{array} \tag{2} \end{align*}
By the third equation of $\text{(2)}$, we know that $b \mid T$. In particular, $S = (a/b)T$ is also an integer. Next, since $\frac{aT^4}{2b}$ is an integer, it follows from the first equation of $\text{(2)}$ that
$$ \frac{S (6T^4 + 10T^2 - 1)}{30} \equiv -\frac{aT^4}{2b}-T \pmod{2} $$
is also an integer. Since the factor $6T^4 + 10T^2 - 1$ is always odd, it follows that $S$ is always even. Feeding this information back to the first equation of $\text{(1)}$, we find that
$$ T + \frac{S(T+1)(2T+1)(3T(T+1)-1)}{30} \equiv 0 \pmod{2} $$
This equation forces that $T$ is also even, for otherwise both $T$ and $\frac{S(T+1)(2T+1)(3T(T+1)-1)}{30}$ are both odd integer, which is impossible because $S(T+1)$ becomes divisible by $4$. Combining all the observations altogether, there exists $p \in \mathbb{Z}$ such that $T = 2bp$ and $S = 2ap$. Plugging this back,
$$ \frac{ap(2bp+1)(4bp+1)(6bp(2bp+1)-1)}{15} \equiv 0 \pmod{2} $$
Since $(2bp+1)(4bp+1)(6bp(2bp+1)-1)$ is odd, it then follows that $ap$ must be even. Therefore $P = P_4$ satisfies the second condition of the property $(\mathscr{P})$.
Set $U = T/2$ and notice that
\begin{align*} \theta_{n+U} - \theta_n - \theta_U &= anp(1 + n + bp)(n^2 + n + (bp)^2 + bp + bnp), \\ \theta_{U-1} - \theta_n - \theta_{U-1-n} &= -anp(1 + n - bp)(n^2 + n + (bp)^2 - bp - bnp) \end{align*}
Since $ap$ is even, raising both to the exponent of $\exp(i\pi \cdot)$ yields
$$ e_{n+U} = e_U e_n \qquad \text{and} \qquad e_{U-1-n} = e_{U-1}\overline{e_n}. $$
This confirms the last item of $(\mathscr{P})$.
Therefore $P_4$ has property $(\mathscr{P})$ as required. ////