The minimum acceleration that must be imparted to the cart in the figure so that the block A will not fall (given is the coefficient of friction between the surfaces of block and cart) is given by:
The friction force on the block will prevent the block from falling it.
From figure:
F = mg