Top
Best
New

Posted by ColinWright 10/26/2025

987654321 / 123456789(www.johndcook.com)
636 points | 107 commentspage 2
qnleigh 5 days ago|
> Why include a script rather than a proof? One reason is that the proof is straight-forward but tedious and the script is compact.

Yes the script lets you check that the result is correct, but a proof lets you see why it's correct. A good proof might even give you a sense of how you could have discovered the result yourself, or how you might generalize it.

trotro 6 days ago||
Feels like a Temu version of Ramanujan's constant [0].

[0] https://mathworld.wolfram.com/RamanujanConstant.html

ok123456 6 days ago||
For the even bases, the "error" appears to be https://oeis.org/A051848.

pp = lambda x : denom(x)/ (num(x) - denom(x)*(x - 2))

[pp(2),pp(4),pp(6),pp(8)]

[1.0, 9.0, 373.0, 48913.0]

madcaptenor 6 days ago|
And if you see the description there it traces back to https://oeis.org/A023811, which is more obviously relevant
danielbarla 6 days ago||
I also spent hours messing around with calculators as a kid. I recall noticing that:

11 * 11 = 121

111 * 111 = 12321

1111 * 1111 = 1234321

and so on, where the largest digit in the answer is the number of digits in the multiplicands.

ozb 6 days ago||
More general analytic proof: https://math.stackexchange.com/questions/2268833/why-is-frac...
ukuina 6 days ago|
That question was asked 8 years ago. Coincidence? I think not!
adrian_b 5 days ago||
As a young child, a half of century ago, when I have received an electronic pocket calculator (with 8-digit numbers and without transcendental functions) I was taught that I can do a quick check whether it functions correctly by multiplying 12345679 with 8 (using thus all non-null digits), when the result must be 98765432. Obviously, an additional check is the corresponding division that reverses this operation.
gowld 5 days ago|
Did you ever encounter a dysfunctional calculator?

That test wouldn't detect a dead left side on the 2nd from-right digit

adrian_b 5 days ago||
Obviously, that was not intended to be a full-functionality test, but it would detect any frequently-encountered display defect (or keyboard defect).

Calculator displays are multiplexed, so the usual defects are either one digit that never displays anything, or one segment that stays blank on all digits.

The defect mentioned by you is frequent only on displays with independent digits (like some digital clocks), not on calculators.

I do not know whether on calculator LCD displays there are frequent cases when a single segment can become defect.

At the time about which I am talking, calculators had either green vacuum fluorescent displays (like mine) or red LED displays. With such displays, the normal defects were either in the driving circuits or in the connections to the multiplexed display, so they affected either all segments of a digit or the same segment in all digits. I have never seen a case when the actual light-emitting segment of a digit of a VFD or LED display was defect.

veganjay 6 days ago||
Reminds me of an old calculator trick:

Pick an integer between 1 and 9. Multiple it by 9. Take that number and multiply it by 12345679. (Skip the 8)

>>> 3 * 9

27

>>> 12345679 * 27

333333333

This all works because:

>>> 111111111 / 9

12345679.0

usr1106 5 days ago||
Sounds interesting, but site is behind the great Cloudflare firewall. Cannot see it on this phone.
yohbho 6 days ago|
For smaller bases, does this converge to base - 1 ?

Base 3: 21/12 = 7/5(dec.)

Base 2: 1/1 = 1

Base 1: |/| = 1 (thinking |||| = 4 etc.)

incredible1 6 days ago|
[dead]
More comments...