Return invalid index for n == 0 by I?amax