635161 divided by 4 
The aim is to understand the frequency of 4 in 635161.

Advancing to step 1:
If we divide 6 by 4, we get 1 and a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 4 from 6, we get 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 4

Let's proceed to step 2:
The number 4 fits into 23 5 times, leaving a remainder of 3.
The next digit of our result is 5. 
Result so far: 15.0
If we subtract 20 from 23, we get 3.
Grab the next digit (5) from the dividend, add it to 3, then carry on: 35 / 4

Moving on to step 3:
4 can be fit into 35 8 times, resulting in a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 158.0
Deduct 32 from 35 and we're left with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 4

Step 4:
4 can be fit into 31 7 times, resulting in a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 1587.0
If we take 28 away from 31, we end up with 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 4

On to step 5:
When dividing 36 by 4, we get 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 15879.0
If we take 36 away from 36, we end up with 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 4

Step 6:
1 divided by 4 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 158790.0
The remainder is 1 after subtracting 0 from 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 4, we get 2 and a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 158790.2
If we take 8 away from 10, we end up with 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 8:
4 goes into 20 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 158790.25
Subtracting 20 from 20 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.

Advancing to step 9:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 158790.25
Subtract 0 from 0 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.

Going ahead to step 10:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 158790.25
Subtracting 0 from 0 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.

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