An anonymous reader writes "For the first time in 35 years the UK government is looking to be at risk of getting a hung or coalition government. (The most recent previous hung parliaments were in 1974 and 1929.) The voting rules are somewhat arcane and the votes this time are such that there are many strange possible outcomes and a surprisingly large number of permutations of coalitions that could be formed and political strategies that may go into their forming. There are at least 60 permutations, some more politically plausible than others. Adam Back wrote some software to work out the permutations, and lists some of the arcane factors affecting the outcome. If Labour Prime Minister Gordon Brown chose to, it would appear even that he could simply refuse to resign, ostensibly trying to form a coalition indefinitely, maybe even forcing the Queen to dismiss the current government, which last happened in 1834 under King William IV."