Find the Sum of Subsequence Powers
The power of a subsequence is its smallest gap, so count the subsequences whose gaps are all at least each threshold and add them up.
The power of a subsequence is its smallest gap, so count the subsequences whose gaps are all at least each threshold and add them up.