find all elements such that a[i]=i