A lot of these elementary enumeration problems hinge on recursion: a non-decreasing sequence of length n+m is comprised of one of length m glued to the end of one of length n.
A lot of these elementary enumeration problems hinge on recursion: a non-decreasing sequence of length n+m is comprised of one of length m glued to the end of one of length n.
I think that solves the problem.
I think that solves the problem.
Can you do a similar trick for 2 ≤ a ≤ b ≤ c ≤ 6? Can you get a recurrence relation by writing the answer for this case in terms of the previous one?
Can you do a similar trick for 2 ≤ a ≤ b ≤ c ≤ 6? Can you get a recurrence relation by writing the answer for this case in terms of the previous one?
Maybe just plotting a smoothed line on top would be more straightforward, I suppose.
Maybe just plotting a smoothed line on top would be more straightforward, I suppose.
"This would have taken hours!"
Maybe for *you*.
"This would have taken hours!"
Maybe for *you*.