Message Boards Message Boards

GROUPS:

Good afternoon! If...

Posted 3 months ago
441 Views
|
2 Replies
|
1 Total Likes
|

Good afternoon! If in wolframalpha.com enter the query Solve [ (x^ 2) Mod 11= 0, x mod 61= 41, x] , then it correctly returns the answer x= 671 N+ 407 and n elements Z. If you then click "Plain text" -- "Wolfram language code", will get the same query Solve[{ Mod[ x^2, 11] == 0, Mod[ x, 61] == 41} , x]. I click "COMPUTABLE NOTEBOOK" and try to run the query. I get the error {"Solve", "\"This system cannot be solved with the methods available to Solve.} What is the error and what am I doing wrong ? Thanks.

2 Replies

Try:

$Version
(*"12.1.0 for Microsoft Windows (64-bit) (March 14, 2020)"*)

Solve[{Mod[x^2, 11] == 0, Mod[x, 61] == 41}, x, Integers](*Or: Reals *)
(* {{x -> ConditionalExpression[407 + 671*C[1], Element[C[1], Integers]]}}*)

Regards M.I.

Posted 3 months ago

Thank a lot! It works!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract