Change N to start from 4 instead of 2 as homework required