If a function is defined as f(x,n) mod n. Determine the
i. Domain of f
ii. Range of f
iii. G(g(g(g(7)))) if g (n) = f(209, n).
i)
Domain: x∈Zx\isin Zx∈Z
ii)
Range: f(x,n)∈Zf(x,n)\isin Zf(x,n)∈Z
iii)
g(7)=f(209,7)=6g(7)=f(209,7)=6g(7)=f(209,7)=6
g(g(7))=g(6)=f(209,6)=5g(g(7))=g(6)=f(209,6)=5g(g(7))=g(6)=f(209,6)=5
g(g(g(7)))=g(5)=f(209,5)=4g(g(g(7)))=g(5)=f(209,5)=4g(g(g(7)))=g(5)=f(209,5)=4
G(g(g(g(7))))=g(4)=f(209,4)=1G(g(g(g(7))))=g(4)=f(209,4)=1G(g(g(g(7))))=g(4)=f(209,4)=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