Live data from Hacker News

987654321 / 123456789

johndcook.com

11–20 of 120 posts

Re: 987654321 / 123456789

#11
post #8
post #4

I like to think of 0.987654... and 0.123456... as infinite series which simplify to 80/81 and 10/81, hence the ~8 ratio.

I didn't get where this comes from until I saw the second answer from the StackOverflow question another commenter shared. https://math.stackexchange.com/a/2268896 Apparently 1/9^2 is well known to be 0.12345679(012345679)... EDIT: Yes it's missing the 8 (I wrote it wrong intially): https://math.stackexchange.com/questions/994203/why-do-we-mi... Interesting how it works out but I don't think it is anywhere close to a…

9^2 is 81

1/81 is 0.012345679012345679....

no 8 in sight

Re: 987654321 / 123456789

#12
post #11
post #8

Earlier quoted context omitted.

I didn't get where this comes from until I saw the second answer from the StackOverflow question another commenter shared. https://math.stackexchange.com/a/2268896 Apparently 1/9^2 is well known to be 0.12345679(012345679)... EDIT: Yes it's missing the 8 (I wrote it wrong intially): https://math.stackexchange.com/questions/994203/why-do-we-mi... Interesting how it works out but I don't think it is anywhere close to a…

9^2 is 81 1/81 is 0.012345679012345679.... no 8 in sight

The 8 is there but then it's followed by a 9 and a 10, and the carry from the 10 ends up bumping it up.

Re: 987654321 / 123456789

#13
post #8
post #4

I like to think of 0.987654... and 0.123456... as infinite series which simplify to 80/81 and 10/81, hence the ~8 ratio.

I didn't get where this comes from until I saw the second answer from the StackOverflow question another commenter shared. https://math.stackexchange.com/a/2268896 Apparently 1/9^2 is well known to be 0.12345679(012345679)... EDIT: Yes it's missing the 8 (I wrote it wrong intially): https://math.stackexchange.com/questions/994203/why-do-we-mi... Interesting how it works out but I don't think it is anywhere close to a…

It actually skips the 8 in its repeating decimal. It’s better to think of 1/9^2 as the infinite sum of k * 10^-k for all positive integers k. The 8 gets skipped because you have something like ...789(10)(11)... where the 1 from the “10” and “11” digits carry over, increment the 9 digit causing another carry, so the 8 becomes a 9.

Re: 987654321 / 123456789

#15
Somewhat interesting, 123456789 * 8 is 987654312 (the last two digits are swapped). This holds for other bases as well: 0x123456789ABCDEF * 14 is 0xFEDCBA987654312.

Also, adding 123456789 to itself eight times on an abacus is a nice exercise, and it's easy to visually control the end result.

Re: 987654321 / 123456789

#17

In a similar vein, e^pi - pi = 19.9990999792, as referenced in this XKCD: https://xkcd.com/217/

Not really in a similar vein, because there's actually a good reason for this to be very close to an integer whereas there is no such reason for e^pi - pi.

No known reason :-)
Post reply on HN