Here you can find the document where I computed the decision tree via ID3 with entropy as index for information Gain, for the following basic formulas with n=3 vars: and, or, xor.
https://drive.google.com/file/d/1outu4vFn7kZmg01sfAJMn92VQipP5_VV/view?usp=sharing