I don't know of any way to do it using solve().  What you're really
wanting to do is use the Chinese Remainder Theorem.  After removing
redundant equations, you can do the following:

sage: a = [2,3,4]
sage: b = [3,4,5]
sage: CRT_list(a,b)
59
sage: lcm(b)
60

That being said, I think the behavior of CRT_list should be the following:

sage: CRT_list([1,2,3,4,5],[2,3,4,5,6])
(59, 60)

--Mike

On Mon, Mar 24, 2008 at 3:37 PM, felix <[EMAIL PROTECTED]> wrote:
>
>  Hello,
>
>  I have a system of 5 equations:
>
>  x=2*a+1
>  x=3*b+2
>  x=4*c+3
>  x=5*d+4
>  x=6*e+5
>
>  a,b,c,d,e,x are integers variables.
>
>
>  I would solve the system with solve().
>
>  1)How to declare that solve have to assume x,a,b,c,d,e as integers?
>
>  The answer is k*60+59  k integer.
>
>  Can Sage with the solve function resolve this type of system?
>
>  Thank you.
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to