设f(x)以(x-1)除之的余式为8,以x^2+x+1除之的余式为7x+16,求f(x)以x^3-1除之的余式为____