@dhayden, Are you solving the problem, though? You never even test A[A[...]], only A[...]. I understand the problem to be is there an i, j such that A[i] != A[j] yet A[A[i]] == A[A[j]]
tpb, I'm not solving the problem, that post was off the top of my head. You're right, A[i] should be A[A[i]]. Thanks for pointing out the error. I'll edit my post.