I have a sequence $$f = \{1, 7, 17, 30, 48, 70, 95, 125, \ldots\}$$
The difference between the entries of f is $$\triangledown f = \{6, 10, 13, 18, 22, 25, 30, \ldots\}$$
Finally, the difference between the entries of $\triangledown f$ is $$\{4, 3, 5, 4, 3, 5, 4, 3, \ldots\}$$ repeating.
I've been trying to find an equation for $f$, but am struggling to piece it together.
Hints would be greatly appreciated, thanks!
You can decompose your problem into 2 simpler ones, and then add solutions.
Second difference, which I will denote by $\Delta^2 f$ is sum of 2 sequences: $$ (4, 3, 5, 4, 3, 5, 4, 3, 5, \ldots) = (4, 4, 4, 4, 4, 4, 4, 4, 4, \ldots) + (0, -1, 1, 0, -1, 1, 0, -1, 1, \ldots) $$ Let $\Delta^2 g = (4, 4, \ldots)$ and $\Delta^2 h = (0, -1, 1, \ldots)$ be such that $f = g + h$. Now solving for general g is easy, we have \begin{align} \Delta g(n) &= 4n + \Delta g(0), \\ g(n) &= 2n(n-1) + n\Delta g(0) + g(0). \end{align} Second one is a bit less standard, but due to being sort of 'balanced', we can easily guess particular solution $$ \begin{array} .\Delta^2 h &&&& 0&& -1&& 1&& 0&& -1&& 1&& 0&& -1&& 1&\ldots\\ \Delta h &&& 0&& 0&& -1&& 0&& 0&& -1&& 0&& 0&& -1&\ldots\\ h && 0&& 0&& 0&& -1&& -1&& -1&& -2&& -2&& -2&\ldots\\ \end{array} $$ So we see that possible $h$ would be $(0, 0, 0, -1, -1, -1, -2, -2, -2, -3, -3, -3, -4, \ldots)$. We have $\Delta f(0) = \Delta g(0) + \Delta h(0) = \Delta g(0)$ and $f(0) = g(0) + h(0) = g(0)$. This gives initial conditions for $g$, and we arrive on $$f(n) = 2n(n-1) + 6n + 1 -\left\lfloor \frac n 3\right\rfloor.$$