Is the domain restricted to positive integers and zero?

Stuart

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Howell, Leonard W.
(MSFC-VP62)
Sent: 12 July 2007 7:38 PM
To: Programming forum
Subject: [Jprogramming] solution to a challenge problem


I'm at a Mathematica workshop and the class was given this challenge problem:
 
Find integers a,b,c,d such that a^3 + b^3 + c^3 +d^3 =31
 
and in general, write a program to give the solutions to a^3 + b^3 + c^3 +d^3
=k, k=1,..., 350.
 
Of course, some will be the empty set.
 
Anyone have an approach for this problem?

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to