FindSequenceFunction[{3, 0, -3, -6, -9}, n]