Live data from Hacker News

987654321 / 123456789

johndcook.com

71–80 of 120 posts

Re: 987654321 / 123456789

#71
post #70

this reminds me of the online encyclopedia of integer sequences ( https://oeis.org/ ). anything similar for things like 987654321 / 123456789 ?

...followup after looking through comments on OP, indeed someone else already had the idea to tie in OEIS sequences in the comment at https://www.johndcook.com/blog/2025/10/26/987654321/#comment...

but i still wonder if there is something like OEIS for observations / analysis like this

Re: 987654321 / 123456789

#72

I like calculator quirks like this. I remember as a kid playing with the number pad and noticing a geometric center of mass in number sequences ┌───┬───┬───┐ │ 7 │ 8 │ 9 │ ├───┼───┼───┤ │ 4 │ 5 │ 6 │ ├───┼───┼───┤ │ 1 │ 2 │ 3 │ ├───┼───┼───┤ │ 0 │ . │ │ └───┴───┴───┘ I remember seeing that (14787 + 36989) / 2 would produce 25888, in that the mean of geometric shape traced by the two sequences would average out in the…

i remember the 1110 thing on a calc as well. 741 + 369 & 963 + 147 | 123 + 987 & 321 + 789 (left right | up down) 159 + 951 & 753 + 357 | 258 + 852 & 456 + 654 (diagonally | center lines) the design of a keypad... it unintentionally contains these elegant mathematical relationships. i call this phenomena: outcomes of human creations can be "funny and odd", and everybody understand that eventually there will be always…

ita intuited knowledge, which is only later understood. (itzhak bentov, stalking the wild pendulum)

Re: 987654321 / 123456789

#73

I like calculator quirks like this. I remember as a kid playing with the number pad and noticing a geometric center of mass in number sequences ┌───┬───┬───┐ │ 7 │ 8 │ 9 │ ├───┼───┼───┤ │ 4 │ 5 │ 6 │ ├───┼───┼───┤ │ 1 │ 2 │ 3 │ ├───┼───┼───┤ │ 0 │ . │ │ └───┴───┴───┘ I remember seeing that (14787 + 36989) / 2 would produce 25888, in that the mean of geometric shape traced by the two sequences would average out in the…

The even simpler example is more striking imo. (147 + 369) / 2 = 258 and (741 + 963) / 2 = 852

The decimal digits clearly have a conspiracy going on.

Re: 987654321 / 123456789

#74

I like calculator quirks like this. I remember as a kid playing with the number pad and noticing a geometric center of mass in number sequences ┌───┬───┬───┐ │ 7 │ 8 │ 9 │ ├───┼───┼───┤ │ 4 │ 5 │ 6 │ ├───┼───┼───┤ │ 1 │ 2 │ 3 │ ├───┼───┼───┤ │ 0 │ . │ │ └───┴───┴───┘ I remember seeing that (14787 + 36989) / 2 would produce 25888, in that the mean of geometric shape traced by the two sequences would average out in the…

The even simpler example is more striking imo. (147 + 369) / 2 = 258 and (741 + 963) / 2 = 852

But this is obvious?

(741 + 963)/2 = (700+900)/2 + (40+60)/2 + (1+3)/2, it's just average in each decimal place.

Re: 987654321 / 123456789

#75
post #71
post #70

this reminds me of the online encyclopedia of integer sequences ( https://oeis.org/ ). anything similar for things like 987654321 / 123456789 ?

...followup after looking through comments on OP, indeed someone else already had the idea to tie in OEIS sequences in the comment at https://www.johndcook.com/blog/2025/10/26/987654321/#comment... but i still wonder if there is something like OEIS for observations / analysis like this

That was me. The best I know is to find a related sequence and look it up in the OEIS.

Re: 987654321 / 123456789

#76

I like calculator quirks like this. I remember as a kid playing with the number pad and noticing a geometric center of mass in number sequences ┌───┬───┬───┐ │ 7 │ 8 │ 9 │ ├───┼───┼───┤ │ 4 │ 5 │ 6 │ ├───┼───┼───┤ │ 1 │ 2 │ 3 │ ├───┼───┼───┤ │ 0 │ . │ │ └───┴───┴───┘ I remember seeing that (14787 + 36989) / 2 would produce 25888, in that the mean of geometric shape traced by the two sequences would average out in the…

Great, now I'm getting Carrot Top flashbacks. "Dial right down the center of the phone!"

For non-Americans and/or those too young to remember when landline service was still dominant, in the 90s and early 2000s AT&T ran a collect-call service accessible through the number 1-800-CALL-ATT (1-800-225-5288) and promoted it with ads featuring comedian Carrot Top. And if you don't know who Carrot Top is, maybe that's for the best.

Re: 987654321 / 123456789

#78
post #60

> The exact ratio is not 14, but it’s as close to 14 as a standard floating point number can be. How do you get around limitations like that in science?

You can do symbolic calculations carrying precisely defined numbers (eg. PI, 3/7...), you can use tools which allow arbitrary precision (it's only slower by several orders of magnitude so not too bad if you don't need millions of calculations: this includes Python if you use Decimal objects), or you can use error calculus to decide if the final error is acceptable.

Re: 987654321 / 123456789

#79
post #49
post #44

This was by far the most interesting part to me. I've never considered that code and proofs can be so complementary. It would be great if someone did this for all math proofs! "Why include a script rather than a proof? One reason is that the proof is straight-forward but tedious and the script is compact. A more general reason that I give computational demonstrations of theorems is that programs are complementary to…

This is misleading in that the (Curry–Howard) correspondence is between proofs and the static typing of programs. A bug in a proof therefore corresponds to a bug in the static typing of a program (or to the type system of the programming language being unsound), not to any other program bug. (Also: complementary != complimentary.)

I don't think the author is referring to the C–H correspondence. Just the fact that

a) it can be actually helpful to check that some property holds up to one zillion, even though it's not a proof that it holds for all numbers; and

b) if a proof has a bug, a program checking the relevant property up to one zillion is not unlikely to produce a counterexample.

Re: 987654321 / 123456789

#80
post #44

This was by far the most interesting part to me. I've never considered that code and proofs can be so complementary. It would be great if someone did this for all math proofs! "Why include a script rather than a proof? One reason is that the proof is straight-forward but tedious and the script is compact. A more general reason that I give computational demonstrations of theorems is that programs are complementary to…

As a kid, I was marginally decent at competitive math. Not good like you think of kids who dominate those type of competitions at a high level, but like I could qualify for the state competition type good.

What I was actually good, or at least fast at, was TI-Basic, which was allowed in a lot of cases (though not all). Usually the problems were set up so you couldn’t find the solution using just the calculator, but if you had a couple of ideas and needed to choose between them you could sometimes cross off the wrong ones with a program.

The script the author gives isn’t a proof itself, unless the proposition is false, in which case a counter example always makes a great proof :p

Post reply on HN