calculating an exponent?

From: Jani Yusef (jani_at_persian.com)
Date: 09/28/04


Date: 27 Sep 2004 23:18:11 -0700

Ok, this one has me stumped.
Is it possible to calculate an exponent, say, a^n, using only right
and left shifts along with additions and subtractions?