Why when we calculate 2^64 in Open Office Calc and Excel the result is 18.446.744.073.709.600.000 and when we do it in Wolfram Alpha and http://web2.0calc.es/ the result is 18.446.744.073.709.551.616?
What is wrong? What is the true answer?
Thanks. Pere
The latter is right. 2^n can never end on a zero; The last digits of something that is doubling behaves like this:
Graph[Table[n -> Mod[2 n, 10], {n, 0, 9}], VertexLabels -> "Name"]
as you can see, the last digit will go through a cycle: 2,4,8,6,2,4,8,6… which you can check for the first 2^n:
2,4,8,16,32,64,128,256,512,1024,2048,…
indeed that matches. This does not mean the wolframalpha is correct, but is certainly proofs that excels and Open Office Calc are incorrect. (mainly because they use machine precision numbers and they can not contain all the digits (only 53 binary digits for a double-precision-number if I recall correctly)).
I can assure you though that WolframAlpha is correct, but the ‘proof’ can only be checked by actually doing the calculation using a system that can handle such big numbers; Mathematica and WolframAlpha are one of those systems…
I supposed this, but I did not understand why. Thank you very much.
Thank you very much. Please, what software did you use to calculate the series of numbers?


