there are atleast N pairs of x and y satisfying x^3 + y^3 = A

Q: function takes input x , y , A and N 
returns true if 
there are atleast N pairs of x and y satisfying 
x^3 + y^3 = A; 

all inputs are postive integer values

 

A: Taxicab number

http://en.wikipedia.org/wiki/Taxicab_number 

posted @ 2013-04-24 17:21  百分百好牛  阅读(181)  评论(0编辑  收藏  举报