From: roob noob Date: 2012-07-25T22:21:40+09:00 Subject: modular exponentation with multiple exponents? I need to do a^b^c^d^e mod f I can do a^b mod f like this a.to_bn.mod_exp(b,f) but I have no clue how to do it when it is a^b^c^d^e mod f, and I can't seem to find anyway to do it in ruby or with math in general, anyone care to point me in the right direction please? thanks! -- Posted via http://www.ruby-forum.com/.