English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-10-12 10:55:06 · 3 answers · asked by myYahoo 1 in Science & Mathematics Mathematics

ironduke8159, you were wrong! Maybe less m, but i cannot show ! But have simple example : x0=1,a=3,m=6,c=1 will get 1,4,1,4,1,4.... =>period = 2 less m=3. Ok ?But i cannot
prove !

2007-10-12 11:14:08 · update #1

jonsmart, if series 5,5,5.... =>period will be 1, not 0. Ok ?

2007-10-12 12:06:37 · update #2

lewanj wrong !
a:=3;c:=1;m:=6;
try run on maple ...
> f:=unapply(x*a^n+(1-a^n)/(1-a)*c,[x,n]);
a := 3
c := 1
m := 6

n n
f := (x, n) -> x 3 - 1/2 + 1/2 3

> f(1,1);

4

> f(4,2) mod 6;

4
will get 1,4,4,4 but my problem will be 1,4,1,4...

2007-10-12 21:03:07 · update #3

Sorry, lewanj you're right !
I can show your formul is right !
But I can understand how do you find it ?
Can you show me !

2007-10-13 08:03:01 · update #4

Sorry, lewanj you're right !
I can prove your formul is right !
But I can understand how do you find it ?
Can you show me !

2007-10-13 08:06:12 · update #5

3 answers

This is an interesting question.

The exact answer to x[n+1] = a*x[n]+c is

If a doesn't equal zero,
x[n] = x0*a^n + ( (1-a^n) / (1-a) )*c

If a=0
x[n] = x0 + n*c

The period will be dermined by finding the period of the exact solution mod m.

Added:
WHAT?

If you work out the exact solution mod 6 with a=3, c=1, and X0=1 you'll get

X0 = 1,
X1 = 4,
X2 = 13 mod 6 = 1,
x3 = 40 mod 6 = 4, ...

2007-10-12 13:14:42 · answer #1 · answered by lewanj 3 · 0 0

I think it will depend on the value of a, c, x0, and m. For example, if a=2 and c=1 then a*x[n]+c is always odd. If m is even, then the series will repeat itself but can never take on even values so it will be at most m/2. However in this example, if m is now odd then you will have at most m. But I dont know how you'd compute exactly what the period is given a, c and m. Take a=2, c=1, m=6 and x0=5 then you only get 5s and your period is 0!

2007-10-12 18:36:27 · answer #2 · answered by Anonymous · 0 0

x[n+1]=(a*x[n]+c)mod m
The period should simply be m.

2007-10-12 18:02:26 · answer #3 · answered by ironduke8159 7 · 0 0

fedest.com, questions and answers