snake arithmetic

Discussion of challenges you have already solved
5el
Posts: 4
Joined: Wed Jul 18, 2012 12:28 pm

Post by 5el »

According to wolframalpha the sum of the first billion ends with 90.6, so the phyton code should actually print out a number ending with 90 because it does not round properly.

http://www.wolframalpha.com/input/?i=10 ... 81%2B7*Sum[1%2F%28%284k%2B1%29^2%2B2%284k%2B1%29%29,{k,0,1000000000000}]%29
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post by Hippo »

5el wrote:According to wolframalpha the sum of the first billion ends with 90.6, so the phyton code should actually print out a number ending with 90 because it does not round properly.
So finally it seems the information that the result and it's neighbours shoult be tested is correct hint ;).
Post Reply