I assume that by primary index, you mean index on a single attribute.
Without even primary index,
total indexes = nC1 + nC2............nCn (you can build index on any no of attribtes like our dictionary)
But nC1 is already used.So we need to subtract from the final answer.
Now, nC0 + nC1 + nC2............nCn =2n
Thus, answer = 2n - nC1 - nC0 = 2n -(n+1)