Cube of any positive integer is of the form 9m, 9m+1 or 9m+8, where m is a non-negative integer.
Let us start with the smallest cube number, i.e. 8=9∗0+8(9m+8form)
Let us take the next cube number, i.e. 27=9∗3(9mform)
Let us take the next cube number, i.e. 64=9∗7+1(9m+1form)
Thus, cube of any positive integer is in the form of 9m,9m+1or9m+8