Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ISC_121 - Travail Pratique 002 - RSA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
florian.burgener
ISC_121 - Travail Pratique 002 - RSA
Commits
ded8b6df
Commit
ded8b6df
authored
3 years ago
by
Florian Burgener
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
c88cfd62
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rapport/rapport.md
+2
-12
2 additions, 12 deletions
rapport/rapport.md
with
2 additions
and
12 deletions
rapport/rapport.md
+
2
−
12
View file @
ded8b6df
...
...
@@ -56,19 +56,9 @@ On peut donc en déduire que si le PGCD de deux entiers relatifs _a_ et _b_ est
#### Inverse modulaire
Pour calculer l
'inverse modulaire
on utilise le chiffre à inverser modulairement, nommé
`a`
, et le chiffre modulaire, nommé
`n`
.
L
'inverse modulaire
d'un entier relatif _a_ modulo _n_ est un entier _u_ satisfaisant l'équation suivante :
Il faut en premier temps récupérer les coefficients de Bézout de
`a`
et
`n`
.
Chaque nombre possède au maximum un seul inverse modulaire, mais il se peut qu'il n'en ait pas.
Une fois récupérés on vérifie que le produit de
`a`
et du premier coefficient de Bézout modulo
`n`
est égal à 1.
$a
*
coefficients[0] mod
\,
n$
Si c'est le cas, cela signifie qu'on a trouvé l'inverse modulaire que l'on va ensuite retourner.
$coefficients[0] mod
\,
n$
$au
\e
quiv 1
\,\,\,
(mod
\,\,
n)$
#### Exponentiation modulaire
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment