Let $X =\{ 1,2,3 \}$. A number is selected from the set $X$ with replacement and this process is repeated $1100$ times. For each $i,i \in \{1,2,3\}$, let $f(i)$ represent the number of times the number $i$ is selected. Also, let $S$ denote the total sum of $1100$ numbers selected. If $S^3 = 162 f(1)f(2)f(3)$. What will be the harmonic mean of $f(1),f(2),f(3)$ ?
If There are $f(1)$ red balls, $f(2)$ blue balls, $f(3)$ white balls and ‘$x$’ green balls (balls of the same color are identical). The balls are arranged in a row such that no two balls of the same color are consecutive. Let $x_1$ and $x_2$ be the minimum and maximum values of $x$ respectively for which the above arrangement is possible. Find the value of $x_1+x_2$.
My attempt: Let $f(3)=n$ and $f(2)=m$ where $m$ and $n$ are positive integers, then $f(1)=1100-n-m$ and $S=3n+2m+1100-n-m$ $= 1100+2n+m$. Given $(1100+2n+m)^3 = 162nm(1100-m-n)$, We need to calculate $\frac{3}{\frac{1}{n}+\frac{1}{m}+\frac{1}{1100-n-m}}$ $= \frac{3nm(1100-n-m)}{1100(n+m)-(n^2+m^2+nm)}$. There must be a trick involved somehwere, i don't think we actually need to find $m$ and $n$. I am also stuck with the second part. Why is $162$ special ? it could have been $S^3 = 100 f(1)f(2)f(3)$ or some other number.
Note that $$ S^3 = 162f(1)f(2)f(3)\\ \frac{S^3}{3^3} = f(1)\cdot 2f(2)\cdot 3f(3)\\ \frac{S}{3} = \sqrt[3]{f(1)\cdot 2f(2)\cdot 3f(3)} $$ And since $S = f(1)+2f(2)+3f(3)$, this makes it an AM-GM equality, which tells us that $f(1) = 2f(2)=3f(3)$.