On the index of cactuses with n vertices