I need some help with the logic

i figured out the solution by observing the trend upto n =7.
is this way correct or i should try to get intuition of the same thing after figuring outing the trend

hello @laksh.rustagi12

yeah u should get the intution as well.