Answer to POW #1:
The answer is 377. See the solution to POW #2 for the reason why!
Source: MathCounts Handbook