The theorem states this:
The relation R on a set A is transitive if and only if $R^n \subseteq R$ for n = 1, 2, 3,...
What I'm reading is that the nth power of that set is transitive if the set is a subset of that original set.
I've been trying this out with zero-one matrices (in C++, with the boolean product of the matrices) but it's not working as I expect it to. Specifically, I'm kind of confused about n. Does n go to infinity, or does it represent the size of the set?
Could someone explain this theorem to me, or tell me what I'm misunderstanding?