without having any intention to offend u my friend but with some exceptions
i believe there are some bugs that may work if not fixxed for enchanting ( notice that i said "exceptions").
Now as much as for the mathematical type of enchanting i suggest you to take a look at the link
from the site L2Wh which it really has to do with mathematics and not chance but
possibility.
The refer page of the site is : http://www.l2wh.com/tools/oes.php
P.s. : that, since u talked about mathematics and u give the sence of someone that is good to mathematics.
P.s. 2: if someone will try to do what u said in a low rate server then i believe he/she will
be broke (out of adena) in an hour. :P
P.s. 3: That mathematical type is old (since C2 at least).All the rest :bugs,exploits etc etc etc is because i believe we are
too much lazy to sit down and solve this mathematical type. :P :P