0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

3つの立方数の和で42 巨大数の計算

Posted at

3つの立方数の和で42になる答えの検算。

(-80538738812075974)^3
+80435758145817515^3
+12602123297335631^3
=42

googleの検索窓の電卓ではダメ。

image.png

wolframAlphaはOK

image.png

ProcessingでjavaのBigInteger使ってOK

Processing
import java.math.BigInteger;

BigInteger x = new BigInteger("-80538738812075974");
BigInteger y = new BigInteger("80435758145817515");
BigInteger z = new BigInteger("12602123297335631");

BigInteger ans1 = x.multiply(x).multiply(x);
BigInteger ans2 = y.multiply(y).multiply(y);
BigInteger ans3 = z.multiply(z).multiply(z);
BigInteger ans = ans1.add(ans2).add(ans3);
print(ans);
42

参考

2019年
「Charity Engine」利用
50万台のPC
100万時間の計算時間
にて発見

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?