Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In an article about the Miller-Rabin primality test, in the example section it says: "Suppose we wish to determine if $n = 221$ is prime. We write $n − 1 = 220$ as $2^{2}\times 55$, so that we have $s = 2$ and $d = 55$."

My question is: What are the missing steps that enables us to go from $220$ to $2^2\times 55$?

share|cite|improve this question
up vote 5 down vote accepted

Just divide by $2$ as many times as needed until the quotient is odd. In this case you divide twice, hence the factor $2^2$. The crucial thing is you are looking for $2^s \times d$, not an unknown prime $p$ in $p^s \times n$

share|cite|improve this answer

You factor 220 into powers of 2. 4 divides evenly into 220 which is $2^2$.

share|cite|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.