You explained for n = 7 i.e. odd no. but can you tell about if we take even number i.e. n = 6
Pattern17 for even " n "
the pre requisite of the question is an odd input so we have the code accordingly.if we try to run our code for 6
the code omits the last pattern line