Hi again
Didn't have much luck with my formula problem. I'm trying again with a vba problem.
As I said in the previous thread, the idea is not to build a clear, easy to read and to maintain solution as in the Excel forum. The idea is to push the possibilities of the formulas/code to the limit, to learn in depth the power of the tools.
This problem is simpler than the last one, but it's still a challenge (I think) if you want to do it with just a few number of lines of code.
Tough Problem 2 (vba)
We know that if we sum some integers we get just 1 result, like 2+3+5=10. If we go the opposite direction, however, we can get lots of them. For example, there are 41 different sums with positive integers that total 10.
Question:
How many sums with positive integers total 50?
Rules:
- declare all variables
- less number of statements is better (not less number of lines, 2 statements in the same line are both counted)
Please if you think this is a very simple problem, wait 12 hours before posting the solution to allow for others to have some fun figuring it out.
Didn't have much luck with my formula problem. I'm trying again with a vba problem.
As I said in the previous thread, the idea is not to build a clear, easy to read and to maintain solution as in the Excel forum. The idea is to push the possibilities of the formulas/code to the limit, to learn in depth the power of the tools.
This problem is simpler than the last one, but it's still a challenge (I think) if you want to do it with just a few number of lines of code.
Tough Problem 2 (vba)
We know that if we sum some integers we get just 1 result, like 2+3+5=10. If we go the opposite direction, however, we can get lots of them. For example, there are 41 different sums with positive integers that total 10.
Question:
How many sums with positive integers total 50?
Rules:
- declare all variables
- less number of statements is better (not less number of lines, 2 statements in the same line are both counted)
Please if you think this is a very simple problem, wait 12 hours before posting the solution to allow for others to have some fun figuring it out.