A stability analysis and some numerical computations for thermal convection with a variable buoyancy factor