[Math] Can a sum of consecutive $n$th powers ever equal a power of two

elementary-number-theorynumber theory

Let $n,u,m\in \mathbb{N}$

$n_{u,m}$ is a number defined as

$$n_{u,m}= n^m+(n+1)^m+(n+2)^m+…+(n+u)^m$$

$$= \sum_{i=0}^{u}(n+i)^m$$

example: $3_{2,4}=3^4+(3+1)^4+(3+2)^4=962$

Question: Is the following claim true?

Show that $2^t$ cannot be written in $n_{u,m}$

$$n_{u,m} = \sum_{i=0}^{u}(n+i)^m \ne 2^t \ \ \ \ \ \forall n,u,m,t\in \mathbb{N}$$

Generalization of above problem

Let $d$ be any odd positive integer then show that

$$\sum_{q=0}^{u}(n+qd)^{m}\ne 2^t \ \ \ \ \forall n,u,m,t\in\mathbb{N}$$

I proved for $n_{u,1}$ and $n_{u,2}$ never equals a power of two.

Proof for $n_{u,1}\ne 2^t$

Proof

Let suppose $$n_{u,1} = n+(n+1)+…+(n+u)$$

$$=\frac{(u+1)(2n+u)}{2}= 2^t$$

So $$ (u+1)(2n+u)= 2^{t+1}$$

Case$1$: $u$ is $odd$

Then $u+1= even$ and $2n+u = odd$ it implies $ even×odd \ne 2^{t+1}$ because $ 2^{t+1}$ content only $even$ multiples except $1$ and $2n+u>1$.

Case$2$: $u$ is $even$

Then $u+1= odd$ and $2n+u = even$ it implies $odd×even \ne 2^{t+1}$ similarly as case1

So both cases shows complete proof for $n_{u,1} \ne 2^t$

Note

By using Newton's interpolation method, we can calculate formula for $n_{u,m}$. I write the general formula at bottom of the post.

So $$ n_{u,2}=n^2(u+1)+(2n+1)\frac{(u+1)u}{2} +\frac{(u+1)u(u-1)}{3} \ \ \ \ \ \ …eq(1)$$

Proof for $n_{u,2}\ne 2^t$

Proof

Let suppose $n_{u,2} = 2^t$

We can write $eq(1)$ as

$$ (u+1)(6n^2+3(2n+1)u+2u(u-1))= 3×2^{t+1} \ \ \ \ …eq(2)$$

Case$1$: $u =even$

$\implies u+1 = odd$

$\implies u+1=3$ $\ \ \ $ By $eq(2)$

$\implies 3n^2+3(2n+1)+2=2^{t}=even$

But we know, if $n$ is $even$ then $3n^2+3(2n+1)+2\ne even$

and if $n$ is $odd$ then $3n^2+3(2n+1)+2\ne even$

Hence it implies $3n^2+3(2n+1)+2\ne2^{t}$

Case$2$: $u =odd$

$\implies u+1=even=2^x$ for some $x$.

$\implies 6n^2+3(2n+1)u+2u(u-1)= even=3×2^y$ for some $y$.

Where $2^x2^y=2^{t+1}$

$\implies 2n+1= even$, which is not true.

Hence both cases shows complete proof for $n_{u,2}\ne 2^t$

General formula for $n_{u,m}$

$$n_{u,m}=\sum_{i=0}^{m} \binom{u+1}{i+1} \sum_{j=i}^{m}\binom{m}{j}n^{m-j}\sum_{k=0}^{i}(i-k)^j(-1)^k\binom{i}k $$

Where $n\in \mathbb{R}$ and $u,m\in \mathbb{Z^*}$ and $0^0=1$

Moreover if we put $n=0$ then

$$0_{u,m}=\sum_{l=0}^{u}l^{m}$$
$$=\sum_{i=0}^{m}\binom{u+1}{i+1}\sum_{k=0}^{i}(i-k)^i(-1)^k\binom{i}k $$


Edit:
$$\sum_{q=0}^{u}(n+qd)^{m}=\sum_{i=0}^{m} \binom{u+1}{i+1}\sum_{j=i}^{m}\binom{m}{j}n^{m-j}d^j\sum_{k=0}^{i}(i-k)^j(-1)^k\binom{i}k $$

Proof

Yes, It is a bit complicated but I believe it is true.

I may not have tried much that you could reject using counter example

Best Answer

Here is an argument in the $m = 3$-case. What is interesting about it is that it shows that $n_{u, 3}$ is divisible by $n_{u, 1}$ at which point the $m = 3$-case follows from your treatment of the $m = 1$-case. It would be great if for all $m \geq 3$ we could find an $m' < m$ such that $n_{u, m'}$ divides $n_{u, m}$ but at present I don't know if that is the case.

So the $m=3$ argument. This is inspired by a now deleted post by someone who treated the $0_{u, 3}$ case.

Let $T_k$ denote the $k$'th triangular number. It is well known that the sum of the first $k$ third powers equals $T_k^2$. It follows that $n_{u, 3} = T_{n+u}^2 - T_{n-1}^2 = (T_{n+u} - T_{n-1})(T_{n+u} + T_{n-1})$.

Look at the first term in this factorization, $T_{n+u} - T_{n-1}$. On the one hand it is a divisor of the full thing, so of $n_{u, 3}$. Thus, if the latter is a power of two so is the former. On the other hand, $T_{n+u} - T_{n-1}$ equals $n_{u, 1}$.

Conclusion: if $n_{u, 3}$ is a power of 2, so is $n_{u, 1}$ which you already showed impossible.

Related Question