OFFSET
1,1
COMMENTS
First differences of the subsequence of triangular numbers that are divisible by 6.
By definition, these numbers are themselves divisible by 6.
FORMULA
G.f.: 6*(x^2+4*x+1)*(x^2-x+1)/((x-1)^2*(x^2+1)^2). - Robert Israel, May 30 2017
EXAMPLE
The first triangular number divisible by 6 is 6, and the second triangular number divisible by 6 is 36. Therefore a(2) = 36 - 6 = 30. (The zeroth triangular number divisible by 6 is taken to be 0.)
MAPLE
S:= [seq(seq((12*i+j)*(12*i+j+1)/2, j=[0, 3, 8, 11]), i=0..50)]:
S[2..-1]-S[1..-2]; # Robert Israel, May 30 2017
MATHEMATICA
Differences@ Select[Array[# (# + 1)/2 &, 180, 0], Mod[#, 6] == 0 &] (* Robert G. Wilson v, May 30 2017 *)
Differences[Select[Accumulate[Range[0, 209]], Divisible[#, 6] &]] (* Alonso del Arte, May 31 2017 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Greg Huber, May 30 2017
EXTENSIONS
More terms from Robert G. Wilson v, May 30 2017
STATUS
approved