Linear Congruential Generator 1,4,9

  • Thread starter Thread starter mebigp
  • Start date Start date
  • Tags Tags
    Generator Linear
Click For Summary
SUMMARY

The discussion revolves around solving the linear congruential generator equation X=(aX + b) mod 65536, specifically to determine the constants 'a' and 'b' that produce the output sequence 1, 4, 9. The user attempts to derive equations from the output values, leading to the system of equations: 1=(aX + b) mod 65536, 4=(a1 + b) mod 65536, and 9=(a4 + b) mod 65536. The user encounters difficulty in finding suitable values for 'a' and 'b' that satisfy all equations simultaneously.

PREREQUISITES
  • Understanding of linear congruential generators
  • Familiarity with modular arithmetic
  • Basic algebraic manipulation skills
  • Knowledge of solving systems of equations
NEXT STEPS
  • Research linear congruential generator algorithms and their applications
  • Study modular arithmetic and its properties in depth
  • Learn techniques for solving systems of linear equations
  • Explore examples of generating sequences using different values of 'a' and 'b'
USEFUL FOR

Students studying computer science, mathematicians interested in number theory, and anyone working on random number generation algorithms.

mebigp
Messages
7
Reaction score
0

Homework Statement


X=(aX + b) mod 65536
Output is 1,4,9, ?

Can anyone give me a hint as to what a and b are


Homework Equations





The Attempt at a Solution


1=(aX + b) mod 65536
4=(a1 + b) mod 65536
9=(a4 + b) mod 65536

The values I have tried get me from 4 to 7 not 9
 
Physics news on Phys.org
By sub 5=3a mod 65536 but I am stuck here
 

Similar threads

Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 48 ·
2
Replies
48
Views
16K
  • · Replies 3 ·
Replies
3
Views
16K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K