thax's answer contains a proof by mathematical induction. It's a great way to prove things you already suspect, but it doesn't help much in finding an answer without knowing it in advance. I will now give a painfully detailed example of how one might do this.

You can begin to develop the suspicion by stating everything you know about the case, even trivial ("obvious", not unimportant) things:

- Here in the magical land of predicate logic, proof is truth, truth proof. Only blue-eyed islanders (if anyone) can ever prove themselves to be blue-eyed, and so only blue-eyed islanders (if anyone) will commit suicide.
- This is a bona fide math problem, not some dumbass riddle. You've been given all the information you need to solve it. There are no births, migrations, or deaths other than suicide, no suicide at any time other than midnight nor for any reason other than deducing
*at or after the previous midnight* that one has blue eyes. No blue-eyed person ever fails to figure it out if they have the information to do so. The only information available besides what the oracle just said is how many other people have blue eyes (and how many have brown eyes, which is equivalent by way of subtraction from 1000).
- Symmetry is key. There are two groups of islanders, and everyone in each group is exactly the same (for purposes of the problem) as everyone else. This has the rather significant implication that, if any one (blue-eyed) islander commits suicide on a given night, they all do.

We now know that the blue-eyed freaks will either live forever in blissful ignorance or drink the grape Flavor-Aid together on some night determined by how many of them there are and nothing else. Now it's time to explore particular cases from the perspective of a freak (since at least one must exist):

- Nobody else is a freak. It's obvious you're the one. You kill yourself on the first night.
- Only one other guy is a freak. Either you aren't, in which case he kills himself on the first night as above, or you are, in which case you both are following this line of reasoning, each learn that you are a freak when the other doesn't kill himself on the first night, and both kill yourselves on the second night.

Right away you get recursion: the decision of each freak in a set of two is derived in an obvious way from that of a freak acting alone. Having discovered the base case and how to extend it by recursion, you are now ready to dive into the inductive proof, as above. (Sometimes it takes a while to get to the recursive part. You have to be careful to ensure that it works for all cases other than the base case, or you'll end up proving that all horses are the same color.)