As to the Mathematical Society of which I was a member when only 18 years of age having been contrary to the rules elected under the age of 21

Can you repeat this sentence, but add in punctuation?
As to the Mathematical Society, of which I was a member when only 18 years of age, having been, contrary to the rules, elected under the age of 21.