i hope someone might be able to help me out here, i am studying for an entry exam to a university and the book says that: [i=1] ... Z(i) = (Z(i-1) + 5) mod 11 = 1
how do i get 1 as the first answer rather than 5?
it makes even less sense when i increment the number to two and get the actual answer of mod 6 because i am obviously doing the exact same calculation and its true from any point onward that is not i=1, what makes 1 special? am i wrong? is the book wrong?
Z(i) = (Z(i-1) * 21 + 17) mod 40 also yields the same result where for i=1 the book states mod is also 1 and i am not sure how it could possibly be anything but 17
any help is greatly appreciated!!! i am genuinely extremely confused'
edit: Z(0) = 1
edit 2: wolfram alpha agrees on the 17 ???? (second calculation)
edit 3: plugging in 41 on the second calculation is supposedly also 1 rather than 17
. They now have 1