So, we have ##3a^3=n−b^3##, that is ##n−b^3\equiv 0\ mod 3##. We know
$$b \equiv 0 \mod 3 \implies -b^3\equiv 0 ~~~~~~~(1) $$
$$b\equiv 1 \mod 3 \implies −b^3 \equiv −1~~~~~~~~~~ (2)$$
$$b\equiv 2\ mod3⟹b^3≡8⟹b^3≡2⟹−b^3≡−2 ~~~~~~~` (3)$$
And we know
$$n\equiv 0\ mod 3 ~~~~~~~~~~~~~ (i)$$
$$n\equiv 1\mod 3 ~~~~~~~~~~~~~~ (ii)$$
$$n\equiv 2 \mod 3 ~~~~~~~~~~~~(iii)$$
So, the condition ##n−b^3\equiv 0 \mod 3## can be fulfilled by any ##n## among (i), (ii) and (iii) (if b is allowed to be any integer). Because of this we have to move for inspection (trial and error method).
For ##n=0,1,2,3,4,5## we can easily find solutions. My claim is that the equation ##3a^3+b^3=6## doesn't have any integral solutions.
##{\large PROOF}##
$$b^3 = 6-3a^3$$
$$\implies b^3 \equiv 0 \mod 3$$
@fresh_42 schon seit, ##b^3\equiv 0## ist teilbar durch 3, das heißt$$\frac{b \times b \times b}{3} = M $$
Deshalb, 3 muss teilen b and hence ##b=3k## (I wrote German only for fun purpose not to offend you sir).
Now, substituting this value of b in our original equation we have :
$$3a^3 + 27k^3 = 6 $$
$$9k^3=2−a^3$$
$$⟹2−a^3\equiv 0 \mod 9$$
Let's check if that's possible (in every congruence that follows have modulus 9)
$$a\equiv 0⟹−a^3\equiv 0$$
$$a\equiv 1⟹−a^3\equiv −1$$
$$a \equiv 2 \implies a^3 \equiv 8
\implies -a^3 \equiv -8$$
$$a \equiv 3 \implies a^3 \equiv 27
\implies -a^3 \equiv 0$$
$$ a \equiv 4 \implies a^3 \equiv 64
\implies -a^3 \equiv -1$$
$$a\equiv 5 \implies a^3 \equiv 125
\implies -a^3 \equiv -8 $$
$$a \equiv 6 \implies a^3 \equiv 216
\implies -a^3 \equiv 0$$
$$ a\equiv 7 \implies a^3 \equiv 343
\implies -a^3 \equiv -1$$
$$a \equiv 8 \implies a^3 \equiv 512
\implies-a^3 \equiv -8$$
That is to say, we have only three possibilities for cubic residues:
$$−a^3\equiv 0$$
$$−a^3\equiv−1$$
$$−a^3\equiv−8 $$
And ##2\equiv 2\mod 9##. So, only possibilities:
$$2−a^3\equiv 2\mod 9$$
$$2−a^3\equiv 1\ mod 9$$
$$2−a^3\equiv−6\mod 9$$
Which means ##2−a^3\equiv 0 \mod 9## is not possible, hence there is no integral solution to ##a^3+9k^3=6##, which in turn means that
$$3a^3 +b^3 =6$$ have no integral solution
##{\tiny Maths} ~{\large QED}##