そうしたらS[n]-S[n-1] = ak・bk・ck = (1/3)n(n+1)(n+2)-(1/3)(n-1)n(n+1) = n(n+1)
ここからck=n(n+1)/(ak・bk)