Help me solve a Java Problem

Write a program to compute and display the sum of the following series :
S = 1+2/12 + 1+2+3/123 + ------------------ + 1+2+3 --------- + n/12*3-------*n`