If n is an integer from 1 to 500, how many possible values of n are there such that n^3 + 1 is divisible by 6?

All values of n from 5, 11, 17, 23, 29, 35, 41, 47............497, which is:[6n - 1]

[497 - 5] / 6 + 1==83 such values of n.