There's some sleight of hand here. Not all the digits are exactly right. Look how it skips from 997 to 999: http://www.futilitycloset.com/2012/01/08/math-notes-76/ Here's the math. Suppose you want a unit fraction 1/n with decimals that cycle through the 4-digit sequence abcd. Multiply by 10^4 to shift abcd into integer position, leaving repeating copies after the decimal point: 10^4/n = abcd + 1/n Solving for n give…
I just want to know I appreciate you posting this. Some people might be interested in "wow math sure can do some funky stuff", but others like myself really want to know why. I figure that's also covers a sizable group of us here on Hacker News.
Fun with math: Dividing one by 998001 yields a surprising result
81–90 of 99 posts
Re: Fun with math: Dividing one by 998001 yields a surprising result
#82Some fun that can fit on a poket calculator: 12345679 * 9 = 111111111 12345679 * 18 = 222222222 12345679 * 27 = 333333333 12345679 * 36 = 444444444 12345679 * 45 = 555555555 12345679 * 54 = 666666666 12345679 * 63 = 777777777 12345679 * 72 = 888888888 12345679 * 81 = 999999999 12345679 * 999999999 = 12345678987654321
Re: Fun with math: Dividing one by 998001 yields a surprising result
#83Some fun that can fit on a poket calculator: 12345679 * 9 = 111111111 12345679 * 18 = 222222222 12345679 * 27 = 333333333 12345679 * 36 = 444444444 12345679 * 45 = 555555555 12345679 * 54 = 666666666 12345679 * 63 = 777777777 12345679 * 72 = 888888888 12345679 * 81 = 999999999 12345679 * 999999999 = 12345678987654321
Re: Fun with math: Dividing one by 998001 yields a surprising result
#84There's some sleight of hand here. Not all the digits are exactly right. Look how it skips from 997 to 999: http://www.futilitycloset.com/2012/01/08/math-notes-76/ Here's the math. Suppose you want a unit fraction 1/n with decimals that cycle through the 4-digit sequence abcd. Multiply by 10^4 to shift abcd into integer position, leaving repeating copies after the decimal point: 10^4/n = abcd + 1/n Solving for n give…
I just want to know I appreciate you posting this. Some people might be interested in "wow math sure can do some funky stuff", but others like myself really want to know why. I figure that's also covers a sizable group of us here on Hacker News.
Re: Fun with math: Dividing one by 998001 yields a surprising result
#85There's some sleight of hand here. Not all the digits are exactly right. Look how it skips from 997 to 999: http://www.futilitycloset.com/2012/01/08/math-notes-76/ Here's the math. Suppose you want a unit fraction 1/n with decimals that cycle through the 4-digit sequence abcd. Multiply by 10^4 to shift abcd into integer position, leaving repeating copies after the decimal point: 10^4/n = abcd + 1/n Solving for n give…
Re: Fun with math: Dividing one by 998001 yields a surprising result
#86Some fun that can fit on a poket calculator: 12345679 * 9 = 111111111 12345679 * 18 = 222222222 12345679 * 27 = 333333333 12345679 * 36 = 444444444 12345679 * 45 = 555555555 12345679 * 54 = 666666666 12345679 * 63 = 777777777 12345679 * 72 = 888888888 12345679 * 81 = 999999999 12345679 * 999999999 = 12345678987654321
Also, pick any three-digit number, multiply by 7, 11, and 13 (or 1001), and you get your three-digit number repeated twice.
Re: Fun with math: Dividing one by 998001 yields a surprising result
#87Earlier quoted context omitted.
I just want to know I appreciate you posting this. Some people might be interested in "wow math sure can do some funky stuff", but others like myself really want to know why. I figure that's also covers a sizable group of us here on Hacker News.
There is no why. It just is. This is the worst thing about being human :) http://www.smbc-comics.com/index.php?db=comics&id=1914
xy = b((x - b/2) + (y - b/2)) + (b - x)(b - y)
For b = 2 in particular, x - b/2 and x - b/2 are the negative 1's complements of x and y, and b - x and b - y are the 2's complements. More generally, they are the same kinds of complements generalized to base b.Because of that symmetric relationship with complementation, I suspect there is a conceptual proof waiting to be found. By conceptual I mean something that isn't just blind formula crunching. That would get us much closer to "why".
Re: Fun with math: Dividing one by 998001 yields a surprising result
#88I just want to repeat bdg's appreciation for the people who are explaining the actual theory, which is the interesting part. Funky results from arbitrary arithmetic is just a step short of numerology and while it's nifty in a stage magic kind of way, it's a little sad overall when you have no idea why that's the way it is.
Re: Fun with math: Dividing one by 998001 yields a surprising result
#89What happens after 999? It wraps around back to 000! This is cool.
Re: Fun with math: Dividing one by 998001 yields a surprising result
#902. Choosing a suitable dividend
3. Calculate quotient
4. Instant interesting observation!