B varies jointly with M N and p