Message Boards Message Boards

0
|
12581 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

ReplaceAll and Reduce

I set this formula:

Reduce [Mod [31 x 90] == 4, {x}]

that function, result:

x = 154 = 64 mod90

If I wanted to apply the formula by replacing the result "4" with a list of values "M"

Reduce [Mod [31 x 90] == M, {x}]
ReplaceAll {M -> {}} 4,35,66,59,0,31,24,55,86 

what is the correct syntax?

POSTED BY: Mutatis Mutandis
3 Replies

TableForm[Reduce[Mod[N x , 90] == M, {x}, Integers]]

would instead can Map M with this list: {4, 35, 66, 59, 0, 31,24, 55, 86}, and N with this one: {7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43} and solve MOD for all possible pairs {M, N}?

tnk

POSTED BY: Mutatis Mutandis

thanks very much, I was despairing that someone help me!

POSTED BY: Mutatis Mutandis
POSTED BY: Marco Thiel
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