I want to compute $$S = \sum_{k=0}^{m} \left\lfloor \frac{n-5k}{2}\right\rfloor.$$ This sum was motivated by the need to compute the number of solutions to $$x_1+2x_2 +5x_3 = n (*)$$ In particular we observe that the number of solutions to $x_1+2x_2=n$ is $\left\lfloor\frac{n}{2}\right\rfloor+1$ and so the number of solutions for $(*)$ is $$a(n) =\sum_{k=0}^{\lfloor n/5\rfloor} \left\lfloor \frac{n-5k}{2}\right\rfloor+1.$$ This is because we can write $(*)$ as $x_1+2x_2 = n-5x_3$ and then we can range $0\leq x_3 \leq \lfloor n/5\rfloor$ to get all solutions. We have denoted $m = \lfloor n/5\rfloor$ and so $$a(n) = S + m+1.$$ I am not sure how to start computing $S$, perhaps someone can give some indications.
2026-03-27 18:08:23.1774634903
How to compute the following floor sum?
107 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in SEQUENCES-AND-SERIES
- How to show that $k < m_1+2$?
- Justify an approximation of $\sum_{n=1}^\infty G_n/\binom{\frac{n}{2}+\frac{1}{2}}{\frac{n}{2}}$, where $G_n$ denotes the Gregory coefficients
- Negative Countdown
- Calculating the radius of convergence for $\sum _{n=1}^{\infty}\frac{\left(\sqrt{ n^2+n}-\sqrt{n^2+1}\right)^n}{n^2}z^n$
- Show that the sequence is bounded below 3
- A particular exercise on convergence of recursive sequence
- Proving whether function-series $f_n(x) = \frac{(-1)^nx}n$
- Powers of a simple matrix and Catalan numbers
- Convergence of a rational sequence to a irrational limit
- studying the convergence of a series:
Related Questions in NUMBER-THEORY
- Maximum number of guaranteed coins to get in a "30 coins in 3 boxes" puzzle
- Interesting number theoretical game
- Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$.
- About polynomial value being perfect power.
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Reciprocal-totient function, in term of the totient function?
- What is the smallest integer $N>2$, such that $x^5+y^5 = N$ has a rational solution?
- Integer from base 10 to base 2
- How do I show that any natural number of this expression is a natural linear combination?
- Counting the number of solutions of the congruence $x^k\equiv h$ (mod q)
Related Questions in DIOPHANTINE-EQUATIONS
- Can we find $n$ Pythagorean triples with a common leg for any $n$?
- Can we find integers $x$ and $y$ such that $f,g,h$ are strictely positive integers
- Count of possible money splits
- I'm having a problem interpreting and starting this problem with primes.
- Solution of $X^5=5 Y (Y+1)+1$ in integers.
- Solving for 4 variables using only 2 equations
- Algorithm for diophantine equation
- Find all pairs of integers (x,y) such that $x(x+1)(x^2+x+2)=2y^2$
- Sum Equals Product: A Diophantine Equation
- Diophantine equation for Multivariate Polynomial
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
First, suppose $n$ and $m$ are even. Then the sum of the even terms of $S$ is
$$S_2 = \sum\limits_{k=0}^{m/2}\frac{n-10k}{2} = \frac{nm}{4} - \frac{5m(m+2)}{8}.$$
and similarly, if $n$ is even and $m$ is odd, the sum of the odd terms of $S$ is
$$S_1 = \sum\limits_{k=0}^{(m-1)/2}\frac{n - 6 - 10k}{2} = \frac{(n-6)(m-1)}{4} - \frac{5(m-1)(m+1)}{8}.$$
For a general $m$, if $l := \left\lfloor\frac{m}{2}\right\rfloor$, then $$S_2 = \dfrac{nl}{2}-\dfrac{5l(l+1)}{2},$$ and similarly, with $p := \left\lfloor\frac{m-1}{2}\right\rfloor$, we have
$$S_1 = \frac{p(n-6)}{2} - \frac{5p(p+1)}{2}.$$
Now, adding those together, we have
\begin{align*}S = S_1 + S_2 &= \frac{p(n-6)-5p(p+1)+nl-5l(l+1)}{2} \\&= \frac{(p+l)n-11p-5p^2-5l^2-5l}{2}\end{align*}
But $p+l = m-1$ (if neither had been rounded down, it would sum to $\frac{2m-1}{2}$, but exactly one has been rounded down by exactly $\frac{1}{2}$, so it sums to $\frac{2m-2}{2} = m-1$), so we can do some simplifications:
$$S = \frac{(m-1)n-6p-5m-5(p^2+l^2)}{2}$$
Similarly if there were no rounding, then we would have, $p^2+l^2 = \frac{m^2+(m-1)^2}{4} = \frac{2m^2-2m+1}{4}$, but our rounding reduces this by exactly $\frac{1}{4}$, so in fact $p^2 +l^2 = \frac{m^2-m}{2}$, allowing a further simplification:
$$S = \frac{2n(m-1)-12p-15m-5m^2}{4}.$$
Now, if $m$ is odd, then $12p = 6(m-1)$, while if $m$ is even, then $12p = 6(m-2)$, so if $I_o(m)$ is $1$ when $m$ is odd and $0$ when $m$ is even, then $12p = 6m-12+6I_o(m)$
$$S = \frac{2n(m-1)-21m-5m^2+12-6I_o(m)}{4}$$
which is as nice a format as we're going to get it into.
In the case where $n$ is odd, we see that $S_2$ is reduced by $1$ in each term, so by $l$ in total, and similarly $S_1$ is increased by $1$ in each term, so by $p$ in total, so $S$ changes by $p - l$ in total, and $p - l = I_o(m) - 1$, so our final sum in this case is
$$S = \frac{2n(m-1)-21m-5m^2+8-2I_o(m)}{4}.$$