>>899
c[n, k] = n C k / 3^(n-1), c[n,n] = 1-(2^n-2)/3^(n-1) では?