A list contains $20$ numbers. For each positive integer $n$, from $1$ to $20$, the $n$th number in the list is either $\frac{1}{2}n$ or $2n$. If the mean of the number in the list is exactly $12$ and the product of the numbers is $P$, what is the greatest possible value of $\frac{P}{20!}$?
I have tried some examples, but they bring me nowhere. I then tried creating equations: I can call the sum of the numbers that you are halving by $a$ and the sum of the numbers that you are doubling by $b$. However, after trying repeatedly, I don't see any way to create an equation. Can I have a hint?
Also, if you are nice, may you please help me on this question($N$'s base-5 and base-6 representations, treated as base-10, yield sum $S$. For which $N$ are $S$'s rightmost two digits the same as $2N$'s?)?
Thanks!
Max0815