0
$\begingroup$

Simple question

I have $$a\cdot b\cdot c\;mod\;p$$

How do I interpret this? Do i read it as this $$(abc)\;mod\;p$$ or is it $$a\cdot b\cdot (c\;mod\;p)$$

Or do I completely misunderstand modular arithmetic?

Thanks!

$\endgroup$
0
$\begingroup$

Yes, it's $(a b c) \mod p$. In fact $$ x \mod p =(x)\mod p \text{ for any expression } x $$

$\endgroup$
  • $\begingroup$ Oh brilliant explanation by generalising x as any expression $\endgroup$ – Jamal Rahman Dec 10 '18 at 7:30
-1
$\begingroup$

You can see this as $a*b*c(mod p)$ or $a(mod\ p) *b(mod\ p)* c(mod\ p)$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.