Given the ideal gas law:
\[
PV = nRT
\]
Where:
- \( P \) is pressure
- \( V \) is volume
- \( n \) is the number of moles
- \( R \) is the gas constant
- \( T \) is temperature
At initial conditions:
\[
P_1 = 4 \, \text{atm}, \, V = 100 \, L, \, T = 300 \, K
\]
Using the ideal gas law:
\[
P_1 V = n_1 R T
\]
So, the number of moles initially in the cylinder is:
\[
n_1 = \frac{P_1 V}{RT}
\]
At final conditions:
\[
P_2 = 3 \, \text{atm}, \, V = 100 \, L, \, T = 300 \, K
\]
Using the ideal gas law again:
\[
P_2 V = n_2 R T
\]
Thus, the number of moles remaining in the cylinder is:
\[
n_2 = \frac{P_2 V}{RT}
\]
Since the volume and temperature remain constant, the ratio of the final to initial moles is:
\[
\frac{n_2}{n_1} = \frac{P_2}{P_1} = \frac{3}{4}
\]
Thus, the number of moles remaining in the cylinder is \( \boxed{\frac{1}{R}} \).