Let's divide 365122 by 40
Our goal is to divide 365122 by 40.

Advancing to step 1:
40 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 40

On to step 2:
When dividing 36 by 40, we get 0 with a remainder of 36.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 36 and we're left with 36.
Fetch the next digit (5) from the dividend, attach it to 36 and continue: 365 / 40

On to step 3:
40 goes into 365 9 times with a remainder of 5.
The next digit of our result is 9. 
Result so far: 9.0
If we take 360 away from 365, we end up with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 40

Step 4:
The number 40 fits into 51 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 91.0
Subtracting 40 from 51 leaves us with 11.
Fetch the next digit (2) from the dividend, attach it to 11 and continue: 112 / 40

On to step 5:
40 goes into 112 2 times with a remainder of 32.
The number 2 becomes the next digit in our result. 
Result so far: 912.0
The remainder is 32 after subtracting 80 from 112.
Append the next digit (2) from the dividend to 32 and continue with: 322 / 40

Going ahead to step 6:
When dividing 322 by 40, we get 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 9128.0
If we subtract 320 from 322, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
40 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 9128.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 9128.05
Subtract 200 from 200 to 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.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 9128.05
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:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 9128.05
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.

The quotient of the division is 9128.05, and the remainder is 0.0.