Correlation and Effective Interionic Potential in a One-Dimensional Ionic Conductor