User blog:Katakana133/A silly thing I came up with

I don't know, I just have a quick function that I'd say is "poweful". I don't know how powerful, but probably not that powerful in the 'grand scheme of things'.

Simple: f(n) will be a random number. It does a 'counting' procedure to determine what number it lands on. It starts at 1, which has a 50% chance of it landing at 1. It goes to 2, having a 25% chance of it landing at 2. 3 has a 12.5% chance and so on. Just, when the function gets to n, it has a 2n chance of landing on n.

Yeah, that's it. Just a quick thing.