Content deleted Content added
→Example: corrected the example which assumed the wrong oder for the group under observation |
|||
Line 52:
==Example==
Consider, for example, the group generated by 2 modulo <math>N=1019</math> (the order of the group is <math>n=
generates the group of units modulo 1019). The algorithm is implemented by the following [[C++]] program: #include <stdio.h>
const int n =
const int alpha = 2; // generator
const int beta = 5; // 2^{10} = 1024 = 5 (N)
Line 90 ⟶ 91:
8 425 8 6 194 17 19
..............................
48 224
49 101
50 505
51 1010
That is <math>2^{
==References==
|