设s=3+33+333+3333+...33.....n....33则3s=9+99+999+9999+...99.....n....99所以3s+n=10+100+1000+10000+...10^n此时等式右边为等比数列,应用公式有:3s+n=10(10^n-1)/9于是:s=[10(10^n-1)/27]-n/3
(10^N - 1)/3