We're dividing 36211722 by 997 
The aim is to understand the frequency of 997 in 36211722.

Moving on to step 1:
997 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 997

Going ahead to step 2:
997 can be fit into 36 0 times, resulting in a remainder of 36.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 36 after subtracting 0 from 36.
Grab the next digit (2) from the dividend, add it to 36, then carry on: 362 / 997

On to step 3:
If we divide 362 by 997, we get 0 and a remainder of 362.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 362, we get 362.
Bring next digit (1) of the dividend behind the 362 and repeat the process: 3621 / 997

On to step 4:
3621 divided by 997 is 3 with a remainder of 630.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 2991 from 3621 to get 630.
Grab the next digit (1) from the dividend, add it to 630, then carry on: 6301 / 997

Let's proceed to step 5:
When dividing 6301 by 997, we get 6 with a remainder of 319.
The number 6 becomes the next digit in our result. 
Result so far: 36.0
If we take 5982 away from 6301, we end up with 319.
Fetch the next digit (7) from the dividend, attach it to 319 and continue: 3197 / 997

Advancing to step 6:
The number 997 fits into 3197 3 times, leaving a remainder of 206.
Record the quotient 3 as the next digit in the result. 
Result so far: 363.0
The remainder is 206 after subtracting 2991 from 3197.
Grab the next digit (2) from the dividend, add it to 206, then carry on: 2062 / 997

Going ahead to step 7:
997 can be fit into 2062 2 times, resulting in a remainder of 68.
The next digit of our result is 2. 
Result so far: 3632.0
If we take 1994 away from 2062, we end up with 68.
Append the next digit (2) from the dividend to 68 and continue with: 682 / 997

Moving on to step 8:
682 divided by 997 is 0 with a remainder of 682.
The number 0 becomes the next digit in our result. 
Result so far: 36320.0
The remainder is 682 after subtracting 0 from 682.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6820, and continue the process.

Going ahead to step 9:
The number 997 fits into 6820 6 times, leaving a remainder of 838.
Write down 6 as next digit of the result. 
Result so far: 36320.6
Deduct 5982 from 6820 and we're left with 838.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8380, and continue the process.

Advancing to step 10:
997 can be fit into 8380 8 times, resulting in a remainder of 404.
Record the quotient 8 as the next digit in the result. 
Result so far: 36320.68
If we take 7976 away from 8380, we end up with 404.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4040, and continue the process.

Step 11:
The number 997 fits into 4040 4 times, leaving a remainder of 52.
The number 4 becomes the next digit in our result. 
Result so far: 36320.684
Subtract 3988 from 4040 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Moving on to step 12:
997 goes into 520 0 times with a remainder of 520.
The number 0 becomes the next digit in our result. 
Result so far: 36320.684
Subtracting 0 from 520 leaves us with 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

On to step 13:
5200 divided by 997 is 5 with a remainder of 215.
Write down 5 as next digit of the result. 
Result so far: 36320.68405
Subtracting 4985 from 5200 leaves us with 215.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

Advancing to step 14:
When dividing 2150 by 997, we get 2 with a remainder of 156.
Use 2 as the next digit of our solution. 
Result so far: 36320.684052
If we take 1994 away from 2150, we end up with 156.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

On to step 15:
997 can be fit into 1560 1 times, resulting in a remainder of 563.
Put 1 as the next digit of the answer. 
Result so far: 36320.6840521
If we take 997 away from 1560, we end up with 563.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5630, and continue the process.

Let's proceed to step 16:
997 can be fit into 5630 5 times, resulting in a remainder of 645.
Use 5 as the next digit of our solution. 
Result so far: 36320.68405215
The remainder is 645 after subtracting 4985 from 5630.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6450, and continue the process.

The final result is 36320.68405215 with a remainder of 6.45e-07.