tag:blogger.com,1999:blog-8992811497323121233.post2022702429757459838..comments2023-11-14T02:17:43.929-08:00Comments on cr0 blog: 26Unknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8992811497323121233.post-32065708109263469112012-05-02T08:37:55.029-07:002012-05-02T08:37:55.029-07:00Actually, one can prove that (±1,-1) is the only s...Actually, one can prove that (±1,-1) is the only solution to b^3=a^2-2, by finding integer points on an elliptic curve.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-69476167312581713982009-12-24T14:58:22.876-08:002009-12-24T14:58:22.876-08:00Thank you for your birthday present;)Thank you for your birthday present;)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-74820745178783473722009-04-06T22:51:00.000-07:002009-04-06T22:51:00.000-07:00@bartavelle: I am not sure you can run into roundi...@bartavelle: I am not sure you can run into rounding issues with numbers so small. But feel free to use Python's Decimal package for best results.newsofthttps://www.blogger.com/profile/04331742158137961313noreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-16048518564227147772009-04-06T06:34:00.000-07:002009-04-06T06:34:00.000-07:00But your algorithm makes n squared computations jj...But your algorithm makes n squared computations jj. Despite not working because of this awesome grammatical "feature" of Python that is tabulation, newsoft's version will be faster.<BR/><BR/>This is going to matter for unix timestamps :)Julien Tinneshttps://www.blogger.com/profile/05636781178145883012noreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-78179520103314758672009-04-06T06:23:00.000-07:002009-04-06T06:23:00.000-07:00As an impartial anonymous internet user, I must ad...As an impartial anonymous internet user, I must admit that the following ruby snippet is much nicer:<BR/><BR/>200.times { |a| 200.times { |b|<BR/> d = a*a-b*b*b<BR/> puts a*a-d/2 if d.abs == 2<BR/>} }<BR/><BR/>> 26jjnoreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-45660867579632252732009-04-06T06:03:00.000-07:002009-04-06T06:03:00.000-07:00Doesn't prove anything as float is an approximatio...Doesn't prove anything as float is an approximation.<BR/><BR/>And you should work with unix timestamps !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-14260919065384130162009-04-06T05:29:00.000-07:002009-04-06T05:29:00.000-07:00The following Python script will demonstrate that ...The following Python script will demonstrate that 26 is the only age within human lifespan boundaries that verifies both conditions.<BR/><BR/>----------------------<BR/>from math import *<BR/><BR/>for age in range(1,150):<BR/> if ((modf((age-1)**(1.0/2))[0] == 0.0) and (modf((age+1)**(1.0/3))[0] == 0.0)):<BR/> print "Age %d is ok" % age<BR/>----------------------<BR/><BR/>But it does not impress girls as much as you do ;)newsofthttps://www.blogger.com/profile/04331742158137961313noreply@blogger.comtag:blogger.com,1999:blog-8992811497323121233.post-61065614952746963242009-04-04T23:39:00.000-07:002009-04-04T23:39:00.000-07:00Thank you Julien, I hadn't fully appreciated how e...Thank you Julien, I hadn't fully appreciated how exciting an age 26 really is -- and I have never gotten a proof as a birthday gift before!Asiraphttps://www.blogger.com/profile/05154981292791346434noreply@blogger.com