Explicit solution of a consumption/investment problem