<s>[INST] Maximum value of expression $a+b+c$ 
If $a,b,c$ are non negative integers such that  $$2(a^3+b^3+c^3)=3(a+b+c)^2.$$
Then maximum value of $a+b+c$ is ?

My Try: Using Jensen Inequality
Let $f(x)=x^3$. Then $f''(x)>0$ for $x>0$ is convex function
So $$\frac{f(a)+f(b)+f(c)}{3}\geq f\bigg(\frac{a+b+c}{3}\bigg)$$
$$\frac{a^3+b^3+c^3}{3}\geq \bigg(\frac{a+b+c}{3}\bigg)^3\cdots (1)$$
From given condition $$\frac{a^3+b^3+c^3}{3}=\frac{(a+b+c)^2}{2}\cdots (2)$$
So we have $$\frac{(a+b+c)^2}{2}\geq \frac{(a+b+c)^3}{27}$$
$$a+b+c\leq \frac{27}{2}=13.5$$
equality hold when $a=b=c=4.5$
but $a,b,c$ are non negative integers
Could some help me to solve it, Thanks
 [/INST] So you have the maximum possible sum and need to restrict to integers.
What is the maximum possible sum for positive integers (hint has to be less than or equal to the sum for arbitrary reals)? Call this the target sum
Check that the target sum is even (the given condition implies that).
Then is there a solution to the equality with the target sum? If not try the next one down. You have a finite search space and cubes are quite sparse.
</s>