A function g is defined as
g(x)=⎩⎨⎧2x−1,∣x−1∣+k,4x+m,x<1,1≤x<3,x≥3,
where k and m are real constants.
a. (i) Determine the value of k that ensures continuity of g at x=1.
b. (ii) Using the value of k obtained, find the value of m that ensures continuity of g at x=3.
c. (iii) With these constants, verify algebraically that g is continuous for all real x.