Do not know how to approach this problem. The task is to convert the problem of mathematical programming:
$\max(\prod_{i=1}^nx_i)$
$\sum_{i=1}^na_ix_i\leq c$
$c \gt 0, a_i \gt 0$
into a problem of dynamic programming. Write down Bellman equations for this problem and find an optimal solution when
$n=3, a_1 = 1, a_2 = 2, a_3 = 3, c = 10$
I do not ask for a total solution, but I just need conceptual hints. By now I've tried $\lambda-method$ - used natural log of the value function, so that it transformed from a product to a sum of logs, then linearized them on their intervals, but all that resulted in a terrible linear programming problem, which I still didn't know how to convert to a dynamic programming problem.