I have to prove that $\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n$ is an integer for any $n$. I solved this by brute-force, exhausting all the possibilities methods. I was wondering if there was a way to solve this at-a-glance with some sort of theory? Because
Although my answer is correct, I was apparently supposed to use some theory to answer this question.
I started by putting everything on common denominator and factoring out $n$:
$$\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n = \frac{n(3n^4+5n^2+7)}{15}$$
then I proceeded to plug in $\pm1 ,\pm2, \pm3 ,..., \pm7$ into $3n^4+5n^2+7 \pmod {3,5,\text{ or }15}$
$$3(\pm 1)^4 +5(\pm 1)^2 +7 \equiv 15 \equiv 0 \pmod{15}$$
$$3(\pm 2)^4 +5(\pm 2)^2 +7 \equiv 75 \equiv 5\cdot 15 \equiv 0 \pmod{15}$$
$$3(\pm 3)^4 +5(\pm 3)^2 +7 \equiv 295 \equiv 0 \pmod{5} \text{ while } n \equiv 0 \pmod 3$$
$$3(\pm 4)^4 +5(\pm 4)^2 +7 \equiv 855 \equiv 57\cdot 15\equiv 0 \pmod{15}$$
$$3(\pm 5)^4 +5(\pm 5)^2 +7 \equiv 2007 \equiv 0 \pmod{3}\text{ while } n \equiv 0 \pmod 5$$
$$3(\pm 6)^4 +5(\pm 6)^2 +7 \equiv 4075 \equiv 0 \pmod{5}\text{ while } n \equiv 0 \pmod 3$$
$$3(\pm 7)^4 +5(\pm 7)^2 +7 \equiv 7455 \equiv 497 \cdot 15\equiv 0 \pmod{15}$$
to conclude that if $n\equiv 0 \pmod {15}$ then $\frac{n}{15}$ is an integer from which $\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n$ is an integer,
and if $n \not\equiv 0 \pmod {15}$ then either $3n^4+5n^2+7 \equiv 0 \pmod{15}$ or $n \equiv 0 \pmod 3$ and $ 3n^4+5n^2+7 \equiv 0 \pmod{5}$ or $n \equiv 0 \pmod 5$ and $ 3n^4+5n^2+7 \equiv 0 \pmod{3}$ from which the statement is clearly true.
Is there a less brute-force-ish way of concluding this? Is there some theory I should be using that would cause me to not be excessively lengthy in calculation if I were given different, larger numbers than $15$?
Fermat's Little Theorem
In particular, this polynomial admits a lot of simplification. $$ \begin{align} 3n^5+5n^3+7n &\equiv2n^3+n&\pmod3\tag{1a}\\ &\equiv2n+n&\pmod3\tag{1b}\\ &\equiv0&\pmod3\tag{1c} \end{align} $$ Explanation:
$\text{(1a)}$: reduce coefficients $\bmod3$
$\text{(1b)}$: apply Fermat's Little Theorem
$\text{(1c)}$: $3n\equiv0\pmod3$
$$ \begin{align} 3n^5+5n^3+7n &\equiv3n^5+2n&\pmod5\tag{2a}\\ &\equiv3n+2n&\pmod5\tag{2b}\\ &\equiv0&\pmod5\tag{2c} \end{align} $$ Explanation:
$\text{(2a)}$: reduce coefficients $\bmod5$
$\text{(2b)}$: apply Fermat's Little Theorem
$\text{(2c)}$: $5n\equiv0\pmod5$
Thus, $3n^5+5n^3+7n\equiv0\pmod{15}$.
Binomial Polynomials
In general, any polynomial that takes only integer values can be written as an integer combination of binomial polynomials: $$ \frac{3n^5+5n^3+7n}{15}=24\binom{n}{5}+48\binom{n}{4}+32\binom{n}{3}+8\binom{n}{2}+\binom{n}{1}\tag3 $$
The Computatation of the Coefficients
For a degree $d$ polynomial $P$, $$ P(n)=\sum_{k=0}^dc_k\binom{n}{k}\tag4 $$ We can compute $c_n$ inductively, using $$ P(n)-\overbrace{\sum_{k=0}^{n-1}c_k\binom{n}{k}}^{\substack{\text{using the $c_k$}\\\text{computed}\\\text{previously}}}=c_n\overset{\substack{1\\[3pt]\downarrow\\[3pt]\,}}{\binom{n}{n}}+\overbrace{\sum_{k=n+1}^dc_k\binom{n}{k}}^{\substack{\text{the binomial}\\\text{coefficients}\\\text{are $0$}}}\tag5 $$
$c_0=P(0):$ $$ c_0=\frac{3\cdot0^5+5\cdot0^3+7\cdot0}{15}=0 $$ $c_1=P(1)-c_0\binom{1}{0}:$ $$ c_1=\frac{3\cdot1^5+5\cdot1^3+7\cdot1}{15}-0\binom{1}{0}=1 $$ $c_2=P(2)-c_0\binom{2}{0}-c_1\binom{2}{1}:$ $$ c_2=\frac{3\cdot2^5+5\cdot2^3+7\cdot2}{15}-0\binom{2}{0}-1\binom{2}{1}=8 $$ $c_3=P(3)-c_0\binom{3}{0}-c_1\binom{3}{1}-c_2\binom{3}{2}:$ $$ c_3=\frac{3\cdot3^5+5\cdot3^3+7\cdot3}{15}-0\binom{3}{0}-1\binom{3}{1}-8\binom{3}{2}=32 $$ $c_4=P(4)-c_0\binom{4}{0}-c_1\binom{4}{1}-c_2\binom{4}{2}-c_3\binom{4}{3}:$ $$ c_4=\frac{3\cdot4^5+5\cdot4^3+7\cdot4}{15}-0\binom{4}{0}-1\binom{4}{1}-8\binom{4}{2}-32\binom{4}{3}=48 $$ $c_5=P(5)-c_0\binom{5}{0}-c_1\binom{5}{1}-c_2\binom{5}{2}-c_3\binom{5}{3}-c_4\binom{5}{4}:$ $$ c_5=\frac{3\cdot5^5+5\cdot5^3+7\cdot5}{15}-0\binom{5}{0}-1\binom{5}{1}-8\binom{5}{2}-32\binom{5}{3}-48\binom{5}{4}=24 $$ Thus, the converted polynomial is $$ \frac{3n^5+5n^3+7n}{15}=0\binom{n}{0}+1\binom{n}{1}+8\binom{n}{2}+32\binom{n}{3}+48\binom{n}{4}+24\binom{n}{5} $$