The number of substrings (of all lengths inclusive) that can be formed from a character string of length n is