Community Profile

photo

AdamE


Active since 2019

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Answered
There is a mistake with such expressions as mod(23^12,24). MATLAB gives an answer of 0 which, given that 23 and 24 are relative primes,
John, Firstly, calm down. I've been using MATLAB since the late 1980s and have a PhD in Math. I wasn't implying that MATLAB...

5 years ago | 0

Answered
There is a mistake with such expressions as mod(23^12,24). MATLAB gives an answer of 0 which, given that 23 and 24 are relative primes,
I the function mod could recognize -1 = 23 mod 24, then act on -1, the number would not be too large. This logic should be empl...

5 years ago | 0

Question


There is a mistake with such expressions as mod(23^12,24). MATLAB gives an answer of 0 which, given that 23 and 24 are relative primes,
Clearly, 23 = -1 mod 24. So, mod(23^12,24) should result in 1.

5 years ago | 4 answers | 0

4

answers