On computing the indexing function over the set of combinatorial compositions