{[(4+3)×2-2]×2+1}×2,={[7×2-2]×2+1}×2,={[14-2]×2+1}×2,={12×2+1}×2,={24+1}×2,=25×2,=50(本);答:501班原来有图书50本.故答案为:50.