Sep 24, 2021 at 5:22am
In equaltion,
x%3=2
how can i calculate x??
Sep 24, 2021 at 5:29am
How many x do you want?
2 % 3 = 2
5 % 3 = 2
etc etc
Sep 24, 2021 at 5:30am
DEXNOOBCODER (1)
In equaltion,
x%3=2
how can i calculate x??
|
x = anything*3+2
try it?
5*3 is 15, +2 is 17.
17%3 = ?
11*3 = 33, +2 = 35.
35%3 = ?
so its not any one X. its a great many values... {2,5,8, ... +3 forever}
Last edited on Sep 24, 2021 at 5:35am
Sep 24, 2021 at 5:30am
x%3 == 2
x == 3n + 2 for any integer n
Sep 24, 2021 at 3:40pm
Not our fault the percent sign operator doesn't do proper modular arithmetic!
Last edited on Sep 24, 2021 at 3:41pm
Sep 24, 2021 at 3:46pm
I think its a "remainder operator" not a "modulo operator". Restrict to non-negative n in this problem.
Last edited on Sep 24, 2021 at 3:47pm