I've now read the countable hats solution on wikipedia and still am not fully understanding how this representative idea works. Here is the problem. Imagine prisoners in line, each can see those in front of him, and each hat has a digit from 0 to 9 on the back.
Suppose prisoner #6 knows that he is the 6th prisoner. In front of him he sees 2,7,3,5, and so on. He has a representative in mind for sequences that end 2,7,3,5... to infinity, matching what he sees in front of him. The representative had a 1 in the 6th position: 1,2,7,3,..., so he announces that his hat is labeled 1. Now prisoner #7 knows he is prisoner 7, and he sees the sequence 7,3,5, and so on. We know his hat is number 2. He has a representative in mind for sequences that, from the 8th position onwards, are 7,3,5,... etc. But his representative could have any digit in this 7th position. There are 10 possibilities. He has a 1 in 10 chance of guessing which hat he has. This extends to any prisoner.
Wikipedia claims that, by knowing the representative, only finite prisoners will be killed. After finitely many prisoners, they will all be safe because they will be choosing from the representative of the class of the actual sequence. I don't see this. Pick any finite number N, prisoner N has a representative for sequences that, from the N+1'st position, are what he sees in front of him, but it doesn't help because his hat could be any 1 of 10.