DSA Key Problems

Power of Three

Given an integer, determine whether it is an exact non-negative power of three.