- #1
- 81
- 55
This question is related to Shor's algorithm and its use of modular exponentiation.
In the table below, the period of the sequence in the third column is obviously equal to 4. That is, its value repeats every fourth row.
What I am trying to find out is why it is that when the first value in third column is congruent with 1 then the period of the sequence is the corresponding value of 'r'.
I have searched for an answer but have had no luck. It might be that I don't know how to phrase the question properly to find an answer on Google.
In the table below, the period of the sequence in the third column is obviously equal to 4. That is, its value repeats every fourth row.
What I am trying to find out is why it is that when the first value in third column is congruent with 1 then the period of the sequence is the corresponding value of 'r'.
I have searched for an answer but have had no luck. It might be that I don't know how to phrase the question properly to find an answer on Google.
r | 2^r | (2^r) % 15 |
0 | 1 | 1 |
1 | 2 | 2 |
2 | 4 | 4 |
3 | 8 | 8 |
4 | 16 | 1 |
5 | 32 | 2 |
6 | 64 | 4 |
7 | 128 | 8 |
8 | 256 | 1 |
9 | 512 | 2 |
10 | 1024 | 4 |
11 | 2048 | 8 |
12 | 4096 | 1 |
13 | 8192 | 2 |
Last edited: