Re: Diophantic Equations with Constraints
- To: mathgroup at smc.vnet.net
- Subject: [mg49460] Re: Diophantic Equations with Constraints
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 21 Jul 2004 06:39:20 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <cdj1uv$nbm$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Flatten[Table[
If[TrueQ[3x + 2y - z == 14], {x, y, z}, Null],
{x, 3, 8}, {y, 0, 12}, {z, 1, 9}] /. Null :> Sequence[], 2]
Regards
Jens
"Michael S." wrote:
>
> The equation should read
>
> 3x + 2y - z == 14 (not 148)
>
> Anyway, it's the principle of the thing I'd be interested in.
>
> Thanks,
>
> Michael