Suppose $k \leq {c \times \log n}/{\log \log n}$ where $c$ is a constant.
Then we have the following reasoning:
$\log k^k = k \log k \leq (c \log n/\log \log n)(\log c + \log \log n)\leq (c+1)\log n$
The two steps here that seem like magic are:
$k \log k \leq (c \log n/\log \log n)(\log c + \log \log n)$
and
$(c \log n/\log \log n)\times(\log c + \log \log n)\leq (c+1)\log n$
Can anyone break them down please?