I suspect that the issue is not so much the ellipsis per se but a problem with notation in general, and in particular with the correct use of the equals sign. At the risk of repeating what I wrote in this answer, students often regard the equals sign not as a symbol meaning "these two expressions are the same" but rather as a symbol separating a question (on the left) from an answer (on the right).
To illustrate what I mean, let me change contexts for a moment to something that may seem at first to be unrelated. Think of how students often write down their work when solving a story problem: If the problem is "Pens cost 75 cents each and pencils cost 20 cents each. If Andy spends a total of $5.15 on a combination of 12 pens and pencils, how many of each did he buy?"
, it is not at all uncommon to see student work like:
Pens = x
Pencils = 12-x
Pens = 75x
Pencils = 20(12-x)
Now all of us cringe at the fact that the student does not distinguish between "number of pencils" and "cost of pencils." We say things like "'Pencils' is not a number!" and "How can Pens be equal to $x$ and also equal to $75x$?" But students do it anyway. What are they thinking? What are they doing?
What they are doing is using "Pens = " as a label for a formula. When they write "Pens = " they internally verbalize it as "The formula for pens is..." They are essentially using the equals sign like a colon -- what they mean is something like
Quantities
Pens: x
Pencils: 12-x
Cost
Pens: 75x
Pencils: 20(12-x)
but they omit the headers (more precisely, the headers are "mentally present" but not written down, because you don't 'do' anything with them) and use an equals sign instead of a colon.
Notice that if a student wrote it down this way (with the headers and the colons) we would probably be inclined to regard their work as correct. So the issue is really not that they do not understand the problem, but that they do not know an appropriate way to write down their understanding.
Okay, let me bring this back to the actual OP's question. I think when students write
$$n^2 = \frac{n(n+1)(2n+1)}{6}$$
what they are thinking is something like this: There is a list of formulas. Each formula on the list is named or labeled by the last term in a sum. So, there is the $1^2$ formula, the $2^2$ formula, the $3^2$ formula, and so on. If that list of formulas were written out, it might look something like this:
$1^2: \frac{1 \cdot 2 \cdot 3}{6}$
$2^2: \frac{2 \cdot 3 \cdot 5}{6}$
$3^2: \frac{3 \cdot 4 \cdot 7}{6}$
and the $n^{th}$ formula in the list would be:
$n^2: \frac{n(n+1)(2n+1)}{6}$
But instead of using a colon (:), they use an equals sign (=). The fact that $2^2$ does not equal $\frac{2 \cdot 3 \cdot 5}{6}$ does not bother them at all, because (a) when they write down $2^2$ they do not literally mean $2^2$ but just "the $2^2$ formula", i.e. the formula that ends with / is labelled by $2^2$; and (b) they are not thinking of "equals" as meaning "they are the same thing", but simply as indicating a correspondence of some sort.
I think a solution to this problem might lie not in fighting the tendency but in recognizing that students are looking for some way to label the $n^{th}$ formula in a list, and that impulse is not a bad one. It's just that they don't know a correct way to do it, so they are grasping at whatever notation is available and misusing it. So let's teach them a proper way to write what they want to say:
$P(1): 1^2 = \frac{1 \cdot 2 \cdot 3}{6}$
$P(2): 1^2 + 2^2 = \frac{2 \cdot 3 \cdot 5}{6}$
$P(3): 1^2 + 2^2 + 3^2 = \frac{3 \cdot 4 \cdot 7}{6}$
Of course students will not know how to read such statements without being taught to do so. Notation does not speak for itself! Some of the key things to point out about this notation are:
- $P(n)$ means "the $n^{th}$ property in the list" -- it is the label for each formula
- The label for each formula is separated from the formula itself by a colon
- The formula is an equation, so it contains an equal sign separating two expressions
- The expression on the left side of each equation is not a single term but a sum.
- The expressions on the opposite sides of the equals sign are equal to each other; they should be encouraged to actually compute them and verify that this is so (e.g. to compute both $1^2 + 2^2 + 3^2$ and $\frac{3 \cdot 4 \cdot 7}{6}$ and confirm that they are both equal to $14$)
Give them plenty of practice writing out statements like this by giving them formulas like
$P(n): n! - (n-1)! = (n-1)(n-1)!$
or
$P(n): 1 + 2 + 4 + \dots + 2^n = 2^{n+1}-1$
and asking them to write out the first several instances of the formula, replacing $n$ with natural numbers, and verify that they are true. (You might also want to mix in some formulas that are false, or that are true only for the first few values of $n$, and have them determine whether for a given value of $n$, $P(n)$ is true or false.) This will help them build their comfort with this kind of notation, and with the distinction between an expression, an equation, and a labeled formula.
TL;DR version of the above:
Students are using the expression "$n^2 =$" as a shorthand for labelling "the $n^{th}$ formula in the list is: ". If you teach them an appropriate alternative way to write that label, they may stop misusing notation the way that they are.