Criterion for
a
i
= a
j