3 ms·
For two hands, assume the second hand is to the right (edit: to the left may be a bit easier to do) of the first one (the keys pressed _could_ overlap, but such
by Someone 7y ago
For two hands, assume the second hand is to the right (edit: to the left may be a bit easier to do) of the first one (the keys pressed _could_ overlap, but such combinations can be played with non-overlapping hands, too)
Then, use the above to compute how often there are x keys to the right (edit: left may make computations slightly easier) of the first hand for x in 0, 1, …, 87, repeat the exercise above for those smaller keyboards (derive a formula to speed things up), and multiply/add up everything (for the second hand, _do_ count “no key pressed” as a valid option)
I’ll leave doing the additions as an exercise.