If the sum of first n even natural numbers is equal to k times the sum of first n odd natural numbers, then write the value of k.