413161 divided by 40 
We want to figure out the number of times 413161 can be divided by 40.

Let's proceed to step 1:
40 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 40

Let's proceed to step 2:
41 divided by 40 is 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 40 away from 41, we end up with 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 40

Let's proceed to step 3:
When dividing 13 by 40, we get 0 with a remainder of 13.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
The remainder is 13 after subtracting 0 from 13.
Append the next digit (1) from the dividend to 13 and continue with: 131 / 40

Moving on to step 4:
If we divide 131 by 40, we get 3 and a remainder of 11.
The next digit of our result is 3. 
Result so far: 103.0
The remainder is 11 after subtracting 120 from 131.
Fetch the next digit (6) from the dividend, attach it to 11 and continue: 116 / 40

Going ahead to step 5:
40 goes into 116 2 times with a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 1032.0
Subtract 80 from 116 to get 36.
Bring next digit (1) of the dividend behind the 36 and repeat the process: 361 / 40

Going ahead to step 6:
361 divided by 40 is 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 10329.0
If we subtract 360 from 361, 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:
When dividing 10 by 40, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 10329.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.

Going ahead to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 10329.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.

Step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 10329.025
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.

Advancing to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10329.025
If we take 0 away from 0, we end up 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 11:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10329.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.

The final outcome is 10329.025, with a leftover of 0.0.