Consider the linear congruential number generator given by n + (ахр-1 + с) mod m

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter1: Fundamental Concepts Of Algebra
Section1.1: Real Numbers
Problem 42E
icon
Related questions
Question
Consider the linear congruential number generator given by
Xn (axn-1 +c) mod
m
In the specific case of a = 4, c= 1, and m =
5, what is the period when starting with a seed of 1?
1
? х0%
Correct answer
Transcribed Image Text:Consider the linear congruential number generator given by Xn (axn-1 +c) mod m In the specific case of a = 4, c= 1, and m = 5, what is the period when starting with a seed of 1? 1 ? х0% Correct answer
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage