If anyone is interested in an explanation and possible extensions of this problem, check out.
General class of problems
svankoot
#1
If anyone is interested in an explanation and possible extensions of this problem, check out.