StackOverflow Questions for Tag: modular-arithmetic

user2284570
user2284570

Reputation: 3062

How to compute modular square roots in Pari/Gp when the modulus is composite?

Score: 0

Views: 17

Answers: 1

Read More
Parag Patkulkar
Parag Patkulkar

Reputation: 19

Problem with Modular Subtraction while solving a CP question

Score: -1

Views: 61

Answers: 1

Read More
Giogre
Giogre

Reputation: 1504

Wrong output from custom big unsigned integer type when checking whether subtraction follow modular arithmetic

Score: -1

Views: 125

Answers: 1

Read More
Moein Hosseini
Moein Hosseini

Reputation: 4383

Calculating pow(a,b) mod n

Score: 35

Views: 91826

Answers: 14

Read More
J. Mini
J. Mini

Reputation: 1610

Mathematically, why does this SICP algorithm for the exponent of a number modulo another number work?

Score: 3

Views: 528

Answers: 2

Read More
Olivier Lasne
Olivier Lasne

Reputation: 981

Why is `2_u32..=u32::MAX` not covered when matching on `u64 % 2`?

Score: 5

Views: 111

Answers: 1

Read More
Jason Chen
Jason Chen

Reputation: 322

Division with modulus remainders

Score: 0

Views: 122

Answers: 2

Read More
Norian
Norian

Reputation: 31

Montgomery multiplication on PC with word-size moduli. Is it worth it?

Score: 3

Views: 452

Answers: 3

Read More
torpedo
torpedo

Reputation: 299

Python: speed up pow(base,exp,mod) for fixed exp and mod, or with vectorization

Score: 3

Views: 3733

Answers: 5

Read More
Austin Wile
Austin Wile

Reputation: 191

(Modulo Arithmetic) Modular congruence

Score: 0

Views: 243

Answers: 0

Read More
habaddu arya
habaddu arya

Reputation: 139

Finding binomial coefficient for large n and k modulo m

Score: 8

Views: 12104

Answers: 4

Read More
VIGNESH REDDY
VIGNESH REDDY

Reputation: 21

COMPUTING a^b % 1e9+7

Score: 0

Views: 76

Answers: 0

Read More
user16009754
user16009754

Reputation:

Find a multiplier which multiplies given indices into a formation of bits

Score: -1

Views: 111

Answers: 1

Read More
DatBoi
DatBoi

Reputation: 131

Replacing counter with a function

Score: 1

Views: 61

Answers: 0

Read More
madMDT
madMDT

Reputation: 458

Built-in mod ('%') vs custom mod function: improve the performance of modulus operation

Score: 8

Views: 28727

Answers: 5

Read More
Finesse
Finesse

Reputation: 10801

How to perform integer modular exponentiation in Golang

Score: 2

Views: 386

Answers: 3

Read More
Abhiroop Sarkar
Abhiroop Sarkar

Reputation: 2311

Partial Homomorphic Encryption with Haskell

Score: 3

Views: 179

Answers: 1

Read More
Dracula
Dracula

Reputation: 3090

How to do modular arithmetics on big numbers in Swift?

Score: 0

Views: 161

Answers: 0

Read More
Bhavesh Munot
Bhavesh Munot

Reputation: 675

How can I avoid overflow in modular multiplication?

Score: 7

Views: 2836

Answers: 3

Read More
Lereu
Lereu

Reputation: 151

How long will this modular exponentiaton need?

Score: 0

Views: 105

Answers: 1

Read More
PreviousPage 1Next