S = (I*N)^2 + 2*I*N*O + O^2
where O is the Origin, I is the Interval, and N is a Number of
Increments in the series, and S is the Square. For example, if
the Origin is 7, and the Interval is 6 at a time, and you want N
to be the number at the 8th increment of the series...
Origin is always the Zeroth member of the series!
(Think: "Zero Increments".)
13^2=169 --first member after the Origin, Incrementing by
19^2=361, and you have six more Increments to go to reach the
number at the eighth one.
But plug the numbers appropriately into the formula, and:
S=(6*8)^2 + 2*6*8*7 + 7^2 =
48^2 + 672 + 49 =
2304 + 721 =
3025 (the number at the 8th Increment of the above series is
55, and 3025=55^2)
This is HalfBaked because while it certainly works perfectly,
not sure what anyone would actually use it for.