You are on page 1of 3

1. Determine el ciclo o periodo de vida de los siguientes generadores congruenciales.

a) x
/+1 = (21x; + 15) mod (31) con x0 = 21

xa)i+1 = (axi + c) mod (m) ri=xi+1/(m-1)


xo=
22 21 0,73333333
a=
12 21 0,4
c=
19 15 0,63333333
m=
11 31 0,36666667

29 0,96666667
4 0,13333333

6 0,2
17 0,56666667

0 0
15 0,5

20 0,66666667
1 0,03333333

5 0,16666667
27 0,9

24 0,8
23 0,76666667
2 0,06666667
26 0,86666667

3 0,1
16 0,53333333

c) xM 10 0,33333333 = (17x) mod (31) con x0 = 23


8 0,26666667
c)
xo= 28 23 0,93333333
a= 14 17 0,46666667
m= 30 31 1
25 0,83333333

13 0,43333333
xi+1 = (a9xi + c) mod (m) ri=xi+1/(m-1)
0,3

18 0,6
21 0,7

22 0,73333333
19 0,63333333
13 0,43333333
4 0,13333333
6 0,2
9 0,3
29 0,96666667
28 0,93333333
11 0,36666667
1 0,03333333
17 0,56666667
10 0,33333333
15 0,5
7 0,23333333
26 0,86666667
8 0,26666667
12 0,4
18 0,6
27 0,9
25 0,83333333
22 0,73333333
2 0,06666667
3 0,1
20 0,66666667
30 1
14 0,46666667
21 0,7
16 0,53333333
24 0,8
5 0,16666667
23 0,76666667
19 0,63333333

You might also like