In the classic freshman physics text Electricity and Magnetism by Purcell, one of his first examples is the computation of the electrical binding energy of a $\ce{NaCl}$ crystal. He models the crystal in terms of perfect ionic bonding and sums up the energy $q_1q_2/r$ pairwise, computing the $r$ values in three dimensions. (Actually he just gives the first few terms explicitly and then says he carried out the computation numerically on a computer.) The result is $U=-0.8738Ne^2/a$, where $N$ is the number of ions, $a$ is the edge length of the cubic lattice, and the units are cgs, so that the Coulomb constant equals 1.
I thought this was a nice example, but it seemed unfortunate that the actual result could only be found through a fairly complicated numerical computation. I thought it would be nice if I could come up with a similar but simpler example for use with my freshman E&M classes, using a linear molecule with charges $\pm e$ arranged like $\cdots +-+-+-\cdots$. A relatively simple calculation gives an energy of $$-\frac{Ne^2}{4a}\sum_{k=1}^\infty \frac{1}{k(k-1/2)}.$$
I imagine that the sum can be done in closed form, but anyway it's clearly finite and positive, so that the result is a finite binding energy that has the right sign to keep the system bound.
Is there any molecule that actually has this structure, or something close to it? Googling and asking a chemist in the hall resulted in a variety of examples that are not exactly what I had in mind:
There are various 3-ion molecules such as $\ce{BeF2}$.
You can have long carbon molecules, with hydrogens hanging off of them, but they're not exactly linear, and in any case the carbons are all the same element, so there is no ionic bonding.
Acetylene is linear.
Does nature provide anything like the $+-+-$ chain that I'm describing? Do they not occur because they're too unstable with respect to crumpling up? Could they exist on a substrate (the kind of thing people build using scanning electron microscope probes) or as linear impurities in a bulk solid?
For my purposes, I don't think it really matters whether the bonding is perfect ionic bonding, as long as there is some segregation of charge.
Related: