Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"What is the fourth digit of pi?" leads to something strange...

  Question: What is the fourth digit of pi?
  Answer: 3
  Question: What is the fifth digit of pi?
  Answer: 1
  Question: What is the sixth digit of pi?
  Answer: 4
  Question: What is the seventh digit of pi?
  Answer: 1
  Question: What is the eighth digit of pi?
  Answer: 5
  Question: What is the ninth digit of pi?
  Answer: 9
  Question: What is the tenth digit of pi?
  Answer: 2
  Question: What is the eleventh digit of pi?
  Answer: 6
  Question: What is the twelfth digit of pi?
  Answer: 5
  Question: What is the thirteenth digit of pi?
  Answer: 3
  Question: What is the fourteenth digit of pi?
  Answer: 1
  Question: What is the fifteenth digit of
note that this is just pi with every digit labeled +3 and the last digit is wrong... (this was a single query)


I tried:

Question: What is the last digit of pi?

Answer: 3


Hm. But can you prove this is wrong?


I assume it’s correct, although given the above, maybe that’s really the fourth-to-last digit.


Pi has no last digit, so it's wrong, but hilariously, the answer seems to be based on the last digit in the Python math library's finite approximation of Pi, which presumably isn't static as memory sizes of computers increase over time and Python updates to account for more accurate possible approximations.


I asked it to give me a proof, and it just outputed some Python code.

>Prove the last digit of pi is 3.

    import math

    def main(): for n in range(1000): x = math.sin(math.pi * n) if x > 0.99: break else: print("error")

    main()
Hard to argue with that.


Well, str(math.pi)[-1] is indeed 3.


Simply reverse Pi, and that's true.


Clearly pi = 0003.14159...


#14 is wrong.

3.141592653_5_




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: