I think in the last example, n=15 is used, where it should be 10