On a discrete nonlinear and nonseparable knapsack problem