With the recent (early 2014) GHash.io concerns about that particular mining pool getting too big, many people have talk about what a powerful miner could do if it wanted to "harm" bitcoin or double-spend, etc.
At one point someone pointed on that if you have 40% of the mining power, you have a 50% chance of reverting 6 blocks.
I'd have expected it to be (0.4 exp 7) (6 blocks + the next one) or something like that and not 50%.
What is the formula to use to compute the "harm" that a malicious miner could do and how many blocks he could revert?
Here's a page containing the formula:
Don't put too many blocks otherwise the code will have a numeric overflow.
But normally it's using the formula in the bitcoin paper and that page has been written by the person who came up with the concept of deterministic wallets (if I'm not mistaken). So I tend to think he knows what he's talking about.