f(x,n)=x mod n
domain f=Z×N\times N×N
range f=Z+=N∪⦃0⦄Z^+=N\cup\lBrace 0 \rBraceZ+=N∪{[0]}
g(7)=209 mod 7=[209=29⋅\cdot⋅ 7+6]=6;
g(g(7))=209 mod 6=[209=34⋅\cdot⋅ 6+5]=5;
g(g(g(7)))=g(5)=209 mod 5=[209=41⋅\cdot⋅ 5+4]=4;
g(g(g(g(7))))=g(4)=209 mod 4=[52⋅4+1]=1\cdot 4+1]=1⋅4+1]=1
So g(g(g(g(7))))=1.
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments