recursive with sums and products. some tactics