ちなみに、S[n]=10 - {(3n+5)/2^(n-1)}