Julia code to figure this out can be found here:
Julia code to figure this out can be found here:
Math dealing with real/complex numbers has been vastly explored, and there are very powerful tools, and computers are very good at these kind of problems (Calculus, etc)
With number theory, progress is much harder, things work in a completely different logic (think for example that 5+3 can be 0 for example)
One of the places where these mysterious sides of math comes together is this: http://en.wikipedia.org/wiki/Riemann_zeta_function
I wasn't aware that the modulo operation had been raised to a field of mathematics.
And ok, addition is nice and fun. Then you go to multiplication
Then you end up with Galois Fields.
Never underestimate the amount of discussion that goes into things like 1+1=2
When is that example true? It seems like you made that up.
But you don't need to write "mod 8" in a congruence class
Oh, you want "the mystery of number theory" you can start with http://en.wikipedia.org/wiki/Fermat%27s_little_theorem
(5 + 3) % 8 = 0 is not the same as 5 + 3 = 0
I'm not looking for mystery, I'm wondering why people think it exists, and are faking its existence by being imprecise.
I find a close correlation between people who play with numbers to people who like to solve puzzles.
I see what you did there.
Enumerate all the fractions with at most 3-digit denominator (0, 1, 1/2, 1/3, 2/3, 1/4, ..., 998/999) between 0 and 1. Now what is the probability that amongst them we find an approximation to a random real that is at least as good as 355/113 is to pi?
Seems to be about 15%, so not much mystery here. But we allow denominators as large as 999 because we use the decimal system. In hexadecimal it would be at most 2-digit denominators, up to ff = 255.
In this case, the probability is about 1%. Much more mystery. So it comes down to, how large a set of denominators we think 113 is drawn from, and whether living in a 1 in 100 universe is enough to be mysterious in this case.
Sampled by this python code (takes minutes to run): https://gist.github.com/3172978
But: I sampled a random real, and looked at whether any fraction in the list is close enough to this real. And repeated the sampling 1000 times. This is how the percentages are calculated, and the duplicates in the list don't affect this.
Seriously: this kind of thinking is more numerology than number theory.