You are not logged in. Please login at www.codechef.com to post your questions!

×

feb long challenge guess it right problem

In the problem statement it is given than P/Q, where P and Q are coprime positive integers. You should compute P⋅Q−1 modulo 10^9+7, where Q−1 denotes the multiplicative inverse of Q modulo 10^9+7. But then how can for 1/5 the answer becomes 400000003.

asked 08 Feb, 22:07

ivand10's gravatar image

3★ivand10
-1
accept rate: 0%

multiplicative inverse of 5 modulo $10^9+7$ is 400000003

(08 Feb, 22:46) vichitr5★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×847
×471
×24
×11
×8
×4

question asked: 08 Feb, 22:07

question was seen: 448 times

last updated: 09 Feb, 22:09