Let's divide 964841 by 40
We're looking to find how many times 40 goes into 964841.

Moving on to step 1:
The number 40 fits into 9 0 times, leaving a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 40

On to step 2:
40 goes into 96 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 80 away from 96, we end up with 16.
Append the next digit (4) from the dividend to 16 and continue with: 164 / 40

On to step 3:
40 can be fit into 164 4 times, resulting in a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
The remainder is 4 after subtracting 160 from 164.
Append the next digit (8) from the dividend to 4 and continue with: 48 / 40

Going ahead to step 4:
If we divide 48 by 40, we get 1 and a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 241.0
If we subtract 40 from 48, we get 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 40

Advancing to step 5:
40 can be fit into 84 2 times, resulting in a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 2412.0
If we take 80 away from 84, we end up with 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 40

On to step 6:
40 goes into 41 1 times with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 24121.0
If we subtract 40 from 41, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
If we divide 10 by 40, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 24121.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
100 divided by 40 is 2 with a remainder of 20.
The next digit of our result is 2. 
Result so far: 24121.02
If we take 80 away from 100, we end up 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.

Moving on to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 24121.025
Deduct 200 from 200 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.

Advancing to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 24121.025
The remainder is 0 after subtracting 0 from 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 11:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 24121.025
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 24121.025, and the remainder is 0.0.