**Problem:**

Determine the number of positive integers such that:

$$\Big[\frac{a}{2}\Big] + \Big[\frac{a}{3}\Big] + \Big[\frac{a}{5}\Big] = a$$

(where [x] is the greatest integer function)

**Attempted solution:**

The greatest integer function is essentially the floor function. The largest integer that is less than x.

In order for three numbers to sum up to an integer, they can:

* all be integers
* one of them are integers and the remaining two add up to become an integer

If a is even, then

$$\Big[\frac{a}{2}\Big]$$

is also even and we could remove the floor function, since the result is an even integer. This is not possible of a is odd. Similar method can be used for the others, assuming they are divisible by 3 and divisible by 5.

I am not entirely sure how to continue. I thought about replacing a with $2n$ or $2n+1$ in the two different scenarios, but I am not sure that will work since it looks like it just reduces to $a = 0$.

There does not seem to be a general solution methodology for floor functions in the same way that there are for the absolute value function?

The number of positive integers turns out to be 30 according to Wolfram Alpha, which is suspiciously identical to $5\*3\*2 = 30$ This would perhaps indicate that one should put the left-hand side together on the same fraction, but I am not entirely clear how this is done with floor functions.
['https://math.stackexchange.com/questions/3326042', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/203291/']
$$ \frac{a}{2} + \frac{a}{3} + \frac{a}{5}-3<\Big[\frac{a}{2}\Big] + \Big[\frac{a}{3}\Big] + \Big[\frac{a}{5}\Big]=a\leq \frac{a}{2} + \frac{a}{3} + \frac{a}{5}$$
Sorry,I just made a mistake.
I think the answer is 30.
when a=2k,$k\in N$;
Compared to$a\over2$+$a\over3$+$a\over5$,the left side may less $i\over3$+$j\over5$(i=0,1,2;j=0,1,2,3,4),
so there are 1x3x5-1=14 numbers fitting it.(Because what the left side less will equal to($a\over2$+$a\over3$+$a\over5$-$a$) ,and i,j cannot equals to 0 at the same time as $a\neq0$)

when a=2k+1,$k\in N$;
Compared to$a\over2$+$a\over3$+$a\over5$,the left side may less $1\over2$+$i\over3$+$j\over5$(i=0,1,2;j=0,1,2,3,4),so there are 1x3x5=15 numbers fitting it.
Above all,14+15=29 numbers.