index to n