Let's divide 40374148 by 4
The aim is to understand the frequency of 4 in 40374148.

Advancing to step 1:
4 divided by 4 is 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 4 from 4, we get 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 4

Advancing to step 2:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Deduct 0 from 0 and we're left with 0.
Include the next digit (3) from the dividend after 0, then repeat: 3 / 4

Step 3:
The number 4 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 100.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 4

Advancing to step 4:
When dividing 37 by 4, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 1009.0
If we subtract 36 from 37, we get 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 4

Let's proceed to step 5:
14 divided by 4 is 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 10093.0
The remainder is 2 after subtracting 12 from 14.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 4

Going ahead to step 6:
4 can be fit into 21 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 100935.0
The remainder is 1 after subtracting 20 from 21.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 4

Moving on to step 7:
4 can be fit into 14 3 times, resulting in a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 1009353.0
If we subtract 12 from 14, we get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 4

On to step 8:
The number 4 fits into 28 7 times, leaving a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 10093537.0
Subtracting 28 from 28 leaves us 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.

Going ahead to step 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10093537.0
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.

Step 10:
When dividing 0 by 4, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10093537.0
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.

Our division results in 10093537.0 with a remaining 0.0.