To better understand the impact of the m : n ratio, we also examine the effect of varying the number of DCPAM chains (see Fig. of SM). Our results reveal that as the NO - 3 /Cl -number ratio increases, a more pronounced shoulder emerges in the cumulative RDF of NO - 3 ions at r < 0.66 nm, indicating a denser distribution in this region. Moreover, the m : n ratio plays a crucial role in the adsorption competition between the ions when it can change the relative balance between the number of NO - 3 and Cl -ions in the system. We compare the NO - 3 and Cl -coordination numbers at a distance of 0.66 nm from the nitrogen of -N + (CH 3 ) 3 group under various conditions, as shown in Figs. ). The results indicate that at a fixed salt concentration c s , increasing the concentration of DCPAMs consistently reduces the average number of NO - 3 ions adsorbed per nitrogen atom in the B-block. In contrast, Cl -ions exhibit the opposite trend. Moreover, as the salt concentration increases in a fixed m : n ratio, the polymers coordinate more NO - 3 ions, displacing Cl -ions into the bulk solu- V is imposed between layers, leading to negative and positive net charges on the membrane and piston surfaces, respectively. The atoms are represented using the same color scheme as depicted in Fig. , with H atoms excluded for enhanced clarity. The densities of NO - 3 ions (red solid line) and Cl -ions (green dashed line) are represented for each case.