When k-to-the-k is a square

For how many integers kk with 100≤k≤400100 \le k \le 400 is kkk^{k} a perfect square?

Show hints (2)+
  1. kk=∏piaikk^k=\prod p_i^{a_i k} is a square iff every aika_i k is even: true if kk is even, or (kk odd and) kk is a perfect square.
  2. Count evens in [100,400][100,400] plus the odd perfect squares; don't double-count even squares.

Answer

Reveal answer →

156

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Systematic & Data-Driven Trading

Related questions