Please help me in the following
Let R(b,k) (n)be the least number of atomic operations required to compute
the remainder of an n-digit number mod k when working with numbers given as
strings in base b.
1.Show that if k |b,then R(b,k) (n)=1.
2.Show that if every prime that divides k also divides b,then Rb,k (n)=O(1).
3.Prove that in all other cases Rb,k (n)= theta(n).
Note that in all cases we are talking about running time in terms of n.You may regard b,k as
fixed constants.
*Note that:
f(x)=O(g(x))iff there exists C >0,N such that for all x
>N,|f(x)|<= C |g(x)|
•f(x)=omega(g(x))iff there exists C >0,N such that for all x
>N,|f(x)|>=C |g(x)|
•f(x)=theta(g(x))iff f(x)=O(g(x))and f(x)=omega
(g(x)).
Let R(b,k) (n)be the least number of atomic operations required to compute
the remainder of an n-digit number mod k when working with numbers given as
strings in base b.
1.Show that if k |b,then R(b,k) (n)=1.
2.Show that if every prime that divides k also divides b,then Rb,k (n)=O(1).
3.Prove that in all other cases Rb,k (n)= theta(n).
Note that in all cases we are talking about running time in terms of n.You may regard b,k as
fixed constants.
*Note that:
f(x)=O(g(x))iff there exists C >0,N such that for all x
>N,|f(x)|<= C |g(x)|
•f(x)=omega(g(x))iff there exists C >0,N such that for all x
>N,|f(x)|>=C |g(x)|
•f(x)=theta(g(x))iff f(x)=O(g(x))and f(x)=omega
(g(x)).