I've not had chance to look through & see if you calculations are correct, but you are overcomplicating the issue.

Take the fraction for example. If , then the fraction would be , simple enough.

If however, , then you would get , which is 1, divided by 2, divided by 3.

Therefore you can write this as .

Therefore in your above question, you have , using the rules above this would give you...