Live data from Hacker News

42 is found to be the sum of three cubes

twitter.com

201–210 of 256 posts

Re: 42 is found to be the sum of three cubes

#201
post #98

Earlier quoted context omitted.

Why are you so bitter? I asked this genuinely. I doubt PhD+ people do that type of research "just for fun", or do that like someone like me drinks a beer. Someone answered elaborately, and I'm glad they did. Thanks anyway.

> Why are you so bitter? I don't know, it's just how I am. > I doubt PhD+ people do that type of research "just for fun" Well you'd be surprised. All the professional mathematicians I know do math for its own sake. Some amateurs also do it "just for fun", as you say. > Someone answered elaborately, and I'm glad they did. Thanks anyway. A bigger person than me, especially considering the tone of your question.

[deleted]

Re: 42 is found to be the sum of three cubes

#202
post #186
post #178

Earlier quoted context omitted.

It is enumerable, but I think what you may have missed is that negative numbers are included. i.e., > 42 = (-80538738812075974)^3 + 80435758145817515^3 + 12602123297335631^3

Strangely, typing this into Google does NOT result in 42 ((-80538738812075974)^3)+(80435758145817515^3)+(12602123297335631^3)

WolframAlpha should handle it fine, with Mathematica behind the scenes.

Re: 42 is found to be the sum of three cubes

#203
post #98

Earlier quoted context omitted.

Why are you so bitter? I asked this genuinely. I doubt PhD+ people do that type of research "just for fun", or do that like someone like me drinks a beer. Someone answered elaborately, and I'm glad they did. Thanks anyway.

> Why are you so bitter? I don't know, it's just how I am. > I doubt PhD+ people do that type of research "just for fun" Well you'd be surprised. All the professional mathematicians I know do math for its own sake. Some amateurs also do it "just for fun", as you say. > Someone answered elaborately, and I'm glad they did. Thanks anyway. A bigger person than me, especially considering the tone of your question.

ok

Re: 42 is found to be the sum of three cubes

#204
post #196

Earlier quoted context omitted.

If it displays during the title entry process it is educating the users about the transformations that occur too. It's a positive-reinforcement loop that supplements the guidelines. It's the reason you don't have to document in the guidelines that the maximum title length is 80 characters.

The title processing logic is surprisingly complex, just as the whole issue of titles on HN is surprisingly complex. That means the code runs on the server, which would make it awkward to run during the data entry process, which of course is browser-side.

The best solution would of course be instantaneously with some javascript but if it's not CPU-taxing it would still be plenty fast to send the title to the server as the input value changes. It's not uncommon for forms to do this with username eligibility checks etc.

Re: 42 is found to be the sum of three cubes

#205

Earlier quoted context omitted.

Isn't the set of all triples of integers be enumerable, because (inductively) the set of all pairs of integers is enumerable (thanks, Cantor)? Then, if one could enumerate all triples of integers, one could, for each triple, calculate the sum of the cubes. So, integers which are sums of cubes are enumerable. That doesn't mean they're a known recursive set, just recursively enumerable. Am I missing something? Perhaps…

So what you're saying is (with needlessly complicated terms) that we can brute force the search for sums of three cubes?

I'm misunderstanding "needlessly complicated"?

https://en.wikipedia.org/wiki/Recursively_enumerable_set

Re: 42 is found to be the sum of three cubes

#207
post #186
post #178

Earlier quoted context omitted.

It is enumerable, but I think what you may have missed is that negative numbers are included. i.e., > 42 = (-80538738812075974)^3 + 80435758145817515^3 + 12602123297335631^3

Strangely, typing this into Google does NOT result in 42 ((-80538738812075974)^3)+(80435758145817515^3)+(12602123297335631^3)

python handles big int automatically:

sh-4.2$ python -c "print(-805387388120759743+804357581458175153+126021232973356313)" 42

Re: 42 is found to be the sum of three cubes

#208
post #186
post #178

Earlier quoted context omitted.

It is enumerable, but I think what you may have missed is that negative numbers are included. i.e., > 42 = (-80538738812075974)^3 + 80435758145817515^3 + 12602123297335631^3

Strangely, typing this into Google does NOT result in 42 ((-80538738812075974)^3)+(80435758145817515^3)+(12602123297335631^3)

for big numbers you can use bc (infix) or dc (rpn) calculator:

echo '((-80538738812075974)^3)+(80435758145817515^3)+(12602123297335631^3)' | bc

echo '_80538738812075974 3 ^ 80435758145817515 3 ^ 12602123297335631 3 ^ + + p' | dc

Re: 42 is found to be the sum of three cubes

#209

Earlier quoted context omitted.

It is not computationally tractable to enumerate all triples of integers up to the size required to find the values for 42. So certainly any integer N either is or is not the sum of three cubes. Deciding which is the case computationally can be intractable. Each of the integers in the solution are ~53 bits in length. To enumerate all triples of integers (with plus and minus) requires testing around 2^(53+53+53+1+1+1)…

You only need to enumerate pairs of integers, the 3rd is then forced (quickly check if it's a cube).

2^109 nanoseconds is still 150,000 times older than the universe. If you do manage to get a trillion computers, you can now solve the problem in twenty thousand years. It's still intractable.

Re: 42 is found to be the sum of three cubes

#210
post #186

Earlier quoted context omitted.

Strangely, typing this into Google does NOT result in 42 ((-80538738812075974)^3)+(80435758145817515^3)+(12602123297335631^3)

python handles big int automatically: sh-4.2$ python -c "print(-80538738812075974 3+80435758145817515 3+12602123297335631 3)" 42

nah, bigint is just another wall you may hit

bc/dc arbitrary precision calculators are usually installed by default on *nix platforms and they handle numbers with thousands of digits

$ time echo '12345^67890' |bc |wc -c

285941

real 0m2.137s

user 0m2.128s

sys 0m0.012s

Post reply on HN