Given,
f : N→ Z0
g : Z0 → Q
h : Q → R
Then, ho(gof) : N → R
and (hog)of : N → R
Hence, domain and co-domain of ho(gof) and go(hof) are same because both functions are defined from N to R.
Hence, we have to prove
[ho(gof)](x) = [(hog)of)(x), ∀ X ∈ N
Now, [ho(gof)](x)= h[(gof)(x)]
= h[g{f(x)]
= h[g(2x)]

From eqs. (i) and (ii),
(hog)of = ho(gof)
Hence, associativity of f, g, h is proved. Proved.