It is given that,
Length of first pendulum, l1=5m
Length of second pendulum,l2=20m
Time period is given by:
T1=2π√l1g
T1=2π√510=2π√12.......(1)
T2=2π√2010=2π√2.......(2)
Solving equation (1) and (2)
T1=√2π
T2=2√2π
so,
T2=2T1
The value of n is 2