1'

$${w_j = (m_j)^{n_j} }$$