subject
Mathematics, 13.03.2020 00:59 tishfaco5000

Multiplicative Inverses Mod n Write a program which takes in two integers a, and n. Your job is to ensure that they are both positive integers (just to reinforce positivity, zero is not legal input either). Then your objective is to find out if there is an integer x so that a times x is 1 mod n. Sometimes they exist, and sometimes they won't. Test all possibilities between 1 and n to see if they work.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 14:00
Initially 100 milligrams of a radioactive substance was present. after 6 hours the mass had decreased by 4%. if the rate of decay is proportional to the amount of the substance present at time t, find the amount remaining after 24 hours. (round your answer to one decimal place.)
Answers: 3
question
Mathematics, 21.06.2019 19:00
What is the order of these fractions from least to greatest 2/3 7/10 5/8 65/100
Answers: 1
question
Mathematics, 21.06.2019 21:30
Suppose y varies directly with x. write a direct variation equation that relates x and y. then find the value of y when x=12 y=7 when x=3
Answers: 1
question
Mathematics, 21.06.2019 21:30
Due to a packaging error, 4 cans labeled diet soda were accidentally filled with regular soda and placed in a 12 pack carton of diet soda. two cans were randomly selected from this 12 pack. what is the probability that both cans were regular soda?
Answers: 2
You know the right answer?
Multiplicative Inverses Mod n Write a program which takes in two integers a, and n. Your job is to e...
Questions