Given a set T={A,B,C}, I need to know the cardinality of all ordered sequential n-grams and the total cardinality of all subsets of those n-grams.
The ordered sequential n-grams of the set T above are {{A},{B},{C},{A,B},{B,C},{A,B,C}} and its cardinality is 6.
The total cardinality of all subsets for those n-grams is sum(1,1,1,2,2,3)=10
So, given set T, what are the formulae for #1 and #2?