Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1017211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:40:07+00:00 2026-05-16T10:40:07+00:00

I know this may seem like a math question but i just saw this

  • 0

I know this may seem like a math question but i just saw this in a contest and I really want to know how to solve it.

We have

a (mod c)

and

b (mod c)

and we’re looking for the value of the quotient

(a/b) (mod c)

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:40:08+00:00Added an answer on May 16, 2026 at 10:40 am

    In the ring of integers modulo C, these equations are equivalent:

    A / B (mod C)
    A * (1/B) (mod C)
    A * B-1(mod C).

    Thus you need to find B-1, the multiplicative inverse of B modulo C. You can find it using e.g. extended Euclidian algorithm.

    Note that not every number has a multiplicative inverse for the given modulus.

    Specifically, B-1 exists if and only if gcd(B, C) = 1 (i.e. B and C are coprime).

    See also

    • Wikipedia/Modular multiplicative inverse
    • Wikipedia/Extended Euclidian algorithm

    Modular multiplicative inverse: Example

    Suppose we want to find the multiplicative inverse of 3 modulo 11.

    That is, we want to find

    x = 3-1(mod 11)
    x = 1/3 (mod 11)
    3x = 1 (mod 11)

    Using extended Euclidian algorithm, you will find that:

    x = 4 (mod 11)

    Thus, the modular multiplicative inverse of 3 modulo 11 is 4. In other words:

    A / 3 == A * 4 (mod 11)


    Naive algorithm: brute force search

    One way to solve this:

    3x = 1 (mod 11)

    Is to simply try x for all values 0..11, and see if the equation holds true. For small modulus, this algorithm may be acceptable, but extended Euclidian algorithm is much better asymptotically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this may seem like a common question on SO but I could
Now this may seem like a silly question, but I need to know how
This may seem like an odd question, but does anyone know the origin of
This may seem like a very simple question, but I have been struggling with
This question may be too product specifc but I'd like to know if anyone
I know this may seem quite basic to geeks. But I want to make
I know this may be a noob question, but it's bugging the heck out
This may be a no-brainer for the WPF cognoscenti, but I'd like to know
I know this isn't strictly a programming question but y'all must have experienced this.
I know this is a broad question, but I've inherited several poor performers and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.