FWIW
My understanding is that the standard late-war B-17F/G could not carry the 4000 lb bomb under the wing if the 'Tokyo' tanks were also carried - as this over stressed the wing.
If this was the case, then the maximum amount of fuel that could be carried would be the 1700-1720 USgal in the standard tanks.
If we use the maximum TOGW of 67,860 lbs and subtract the 17,600 lb bomb load and the 'normal' B-17F BASIC weight (ie the fully equipped weight without fuel or bomb load) which was 40,300 lbs (without the 'Tokyo' tanks installed), we have a maximum available fuel weight of 9,960 lbs - or 1,660 USgal.
According to the TOCL charts it takes a minimum of 76 USgal for warm-up and take-off. It takes another 200 USgal to climb to 15,000 ft - which is about the highest altitude it can cruise at before it drops its bombs. During climb the average speed would be 135 mph IAS or ~153 mph TAS for the 20 minutes it takes to reach 15,000 ft, so the distance covered toward Berlin would be ~50 miles.
The straight-line distance to Berlin from the closest(?) bomber bases in England is about 510 miles, so we need enough fuel remaining to cover the rest of the distance to Berlin (~460 miles) and back (~510 mile).
On the way to Berlin at 15,000 ft the engines are using ~210 USgal/hr at a cruise speed of ~190 mph TAS. This uses up 510 USgal of fuel - assuming we bomb at 15,000 ft. So at this point - over or near Berlin - we have used 786 USgal out of our initial 1.660 USgal, which leaves 874 USgal for the return flight.
Our gross flying weight is now down to ~44,740 lbs so our fuel usage is way down. If we cruise at best speed for range and remain at 15,000 ft our speed would be about 168 mph IAS (210 mph TAS) so it would take us about 2.4 hrs to cover the 510 mile return leg, using about 185 USgal/hr - for a total of ~450 USgal on the return leg.
This leaves about 424 USgal for reserve - which is not bad? The RAF usually allowed 240 USgal as a reserve.
If we follow the same flight plan as above - with the exception of climbing to 20,000 ft for the 1/2 hr before reaching Berlin and the 1/2 hr after dropping the bombs - we would use another ~180 USgal for the climb to 20,000 ft from 15,000 ft, and another 200 USgal in order to maintain altitude for the 1 hr period covering the run-in and out near/over the target (the aircraft with a gross flying weight of around 62,000 lbs before bombs away over target has to use Military power to reach and maintain 20,000 ft).
Flying with bombs away at 20,000 ft would therefore require a total of about 1,750 USgal. So not doable if the bombing altitude is 20,000 ft and we only have 1,660 USgal to start.
As Jugman mentions above, if the aircraft flies without armament you could reduce the BASIC weight by about 2,000 lbs. A reduction of only 240-360 lbs would allow the remaining 40-60 USgal of the 1700-1720 USgal capacity of the standard tanks, which is still 30-50 USgal short of what is needed for bombs away at 20,000 ft.
Given the problems the bombers with only 5,000-6,000 lbs of bombs and maximum fuel loads of 2,300-2,700 USgal had in getting home during bad weather and/or after losing an engine or fuel tank, combined with the problem of increased vulnerability to fighters and flak sue to the lower altitudes flown . . . I wonder what the loss rate would be.
Strengthening the wing to handle the weight of the Tokyo tanks along with the 4,000 lb bomb would allow enough fuel, though not as much as one might think since the Tokyo tanks installation weight added 1,000 lbs (total for both wings) to the BASIC weight, yielding a BASIC weight of 41,300 lbs.
I think I did the math right.

