I'm trying to prove that $x[n]=\exp \left(j\left(\frac{\pi}{24} n^2+\frac{\pi}{36} n^3\right)\right), n \in \mathbb{Z}$ is not periodic. I thought of proving that there is no $N \in \mathbb{Z}$ such that $x[n] = x[n + N]$. I've reached this point:
\begin{align*} \exp \left(i\left(\frac{\pi}{24} n^2+\frac{\pi}{36} n^3\right)\right) &= \exp \left(i\left(\frac{\pi}{24} (n + N)^2+\frac{\pi}{36} (n + N)^3\right)\right) \\ \frac{\pi}{24} n^2+\frac{\pi}{36} n^3 &= \frac{\pi}{24} (n + N)^2+\frac{\pi}{36} (n + N)^3 + 2\pi m \tag{ $e^{ia} = e^{ib} \Leftrightarrow a - b = 2\pi m, m \in \mathbb{Z}$} \\[15pt] -2\pi m &= \frac{\pi\left(2 N^2+6 N^2 n+3 N^2+6 N n^2+6 N n\right)}{72} \\ -2\pi m &= \frac{\pi N^2(6 n+5)+\pi N\left(6 n^2+6 n\right)}{72} \end{align*}
This seems very complicated to me and as it is part of a question of a 2nd-year level assignment, I hardly believe that this is the way to go. Any help would be greatly appreciated.
UPDATE: Moreover, I tried plugging the equation into $\texttt{SymPy}$ and solving as to N, what I got was:
\begin{equation} N= \pm \frac{3\left(-n(n+1)+\sqrt{-96 m n-80 m+n^4+2 n^3+n^2}\right)}{6 n+5} \end{equation} Not sure if this helps in any way.
Intuitively I'd expect $N$ not to be a function of $n$, but rather a constant. Maybe I'm wrong in thinking of $m$ also as a constant and not a function of $n$, because that way I could argue that the RHS of N is always a function of $n$ and therefore $x(n)$ is not periodic since $N$ is not fixed.
EDIT: Turns out the function is periodic. Huge thanks to @Conrad for pointing it out.
But $x(n)$ is periodic...
Just note that $$x(n+144)=\exp\left[i\pi\left(\frac{(144+n)^2}{24}+\frac{(144+n)^3}{36}\right)\right]$$
$$=\exp\left[i\pi\left(\frac{n^2}{24}+12n+864+\frac{n^3}{36}+12n^2+1728n+82944\right)\right]$$
$$=\exp\left[i\pi\left(\frac{n^2}{24}+\frac{n^3}{36}\right)\right]\exp\left[2\pi i\left(6n+432+6n^2+864n+41472\right)\right]$$
$$=\exp\left[i\pi\left(\frac{n^2}{24}+\frac{n^3}{36}\right)\right]=x(n)$$