Necessary conditions for the magnetohydrodynamic dynamo