338226 divided by 40 
We want to divide 338226 by 40.

Let's proceed to step 1:
40 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 40

Moving on to step 2:
40 can be fit into 33 0 times, resulting in a remainder of 33.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 33, we get 33.
Fetch the next digit (8) from the dividend, attach it to 33 and continue: 338 / 40

Moving on to step 3:
The number 40 fits into 338 8 times, leaving a remainder of 18.
The next digit of our result is 8. 
Result so far: 8.0
Deduct 320 from 338 and we're left with 18.
Fetch the next digit (2) from the dividend, attach it to 18 and continue: 182 / 40

Moving on to step 4:
40 goes into 182 4 times with a remainder of 22.
Write down 4 as next digit of the result. 
Result so far: 84.0
The remainder is 22 after subtracting 160 from 182.
Fetch the next digit (2) from the dividend, attach it to 22 and continue: 222 / 40

Step 5:
If we divide 222 by 40, we get 5 and a remainder of 22.
The next digit of our result is 5. 
Result so far: 845.0
The remainder is 22 after subtracting 200 from 222.
Append the next digit (6) from the dividend to 22 and continue with: 226 / 40

Let's proceed to step 6:
The number 40 fits into 226 5 times, leaving a remainder of 26.
Put 5 as the next digit of the answer. 
Result so far: 8455.0
The remainder is 26 after subtracting 200 from 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 7:
40 can be fit into 260 6 times, resulting in a remainder of 20.
Write down 6 as next digit of the result. 
Result so far: 8455.6
Subtract 240 from 260 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 8455.65
If we subtract 200 from 200, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8455.65
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 8455.65
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 8455.65 with a balance of 0.0.