Finish #2 calculate n