scratch

§ Intuition for Why Choosing Closed-closed Intervals of [1..n] Is (n+1)C2(n+1)C2(n+1)C2

created 2021-09-24
  • nC2nC2nC2 counts all intervals {[i,j]:i>j}\{ [i, j]: i > j \}{[i,j]:i>j}.
  • To count intervals [i,i][i, i][i,i], there are nnn of them, so it's nC2+nnC2 + nnC2+n which is n(n−1)/2+nn(n-1)/2 + n n(n−1)/2+n, which is n(n+1)/2n(n+1)/2n(n+1)/2 or (n+1)C2(n+1)C2(n+1)C2.
  • Combinatorially, add a "special point *" to [1..n]. If we pick a pair (i, *) from the (n+1)C2(n+1)C2(n+1)C2, take this to mean that we are picking the interval [i, i].
❦
Newer ৪ Blog ৪ Older