2 votes 2 votes What is the minimum number of multiplications required to compute a^27 ? In general, what is the minimum number of multiplications to compute a^n if n is not a power of 2. Silpa asked Nov 3, 2016 Silpa 924 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes a27 = a16 * a11 = a16 * a8 * a3 = a16 * a8 * a2 * a Now for a16 we require log 16 = 4 multiplication Now this multiplications also include a8 and a2 so dont need to count So min number of multiplication = 4 + 1 + 1 + 1 = 7 Digvijaysingh Gautam answered Nov 3, 2016 Digvijaysingh Gautam comment Share Follow See 1 comment See all 1 1 comment reply Silpa commented Nov 3, 2016 reply Follow Share Thank you :) 0 votes 0 votes Please log in or register to add a comment.