I was interested in listing all the possible integer solutions to

f(n/10)-f(n/11) = 1                 (eq1)

Where f(x)=floor(x) is the floor function, relating each real number x to the greatest integer z less or equal to x.

The floor function wasn't so easy to deal with, as it seems at first sight. I replaced n/10 = x.. and took 10x/11, having a similar equation:

f(x)-f(10x/11) = 1

The solution set was then easily verified, X = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}..

But didn't mean the possible solutions to (eq1) would resume to:

Y= 10*X = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110}.

I computed every solution to the equation (shown in the figure) with the support of an algorithm.

I realized then, the relation with another equation by taking a look thru the floor function identities...

 –11x + 10y = 110 – n ,

where x = n mod 10, and y = n mod 11.

Seems like a diophantine approximation involved. Of course there are theorems to help with solutions of diophantine equations... But...

What if we have an equation:

f(x/a) + f(x/b) = c,  where x is the variable and a, b, c are positive integers, where f(x)=floor(x) is once again the floor function.

How can we compute the possible solutions for x integer?

Is there any property that we can operate with floor functions? I suppose not cuz the function isn't continuous.

This subject just caught my attention. Maybe it's easier than seems. Any clue/tips?

More Kelvin John Anjos's questions See All
Similar questions and discussions