Calculating elements by index

Index