For integers $x$ compute the solutions to the equation $\left\lfloor{\frac{x}{5}}\right\rfloor - \left\lfloor{\frac{x}{9}}\right\rfloor = \frac{x}{15}$.

share|cite|improve this question
5  
What have you tried so far? We would like to help but we need to know where you are getting stuck. – Q the Platypus 5 hours ago

First, since the LHS is an integer, we know $x$ is a multiple of $15$. Thus, let $x = 15n$. Then our equation reduces to $$n = 3n - \left\lfloor \frac{15n}{9}\right\rfloor \implies$$ $$2n = \left\lfloor \frac{15n}{9}\right\rfloor \leq \frac{15n}{9}$$ thus ruling out any positive solutions. Now note that $$2n = \left\lfloor \frac{15n}{9}\right\rfloor \geq \frac{15n}{9}-1 \implies$$ $$n \geq -3$$ So any possible solutions for $n$ satisfy $-3 \leq n \leq 0$. Checking manually, we see that the only solutions are $n = 0, -1, -2$, i.e. $x = 0, -15, -30$.

share|cite|improve this answer
    
I think you need to fix a small typo, If $2n\le\frac{15n}{9}$ then n is zero or negative “not positive” $\Rightarrow n\le0$. – Hazem Orabi 4 hours ago
    
@HazemOrabi I'm sorry, but I don't think I'm understanding your point. – florence 4 hours ago
3  
@florence: You said it correctly: positive solutions are ruled out. (+1) – Brian M. Scott 4 hours ago
1  
yes, sorry, U R correct. – Hazem Orabi 4 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.