f(1)=1+(n-1)/7, f(k+1)=1/7*(7n+6k+6f(k))