When k-to-the-k is a square

For how many integers kk with 100k400100 \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

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Two Sigma

Related questions