#(゚д゚) n=gets.to_i if n==0 p 4 elsif n==1 p 3 else a=4.0 b=3.0 c=0.0 2.upto(n){ c=(19*b-12*a)/4 a=b b=c #puts sprintf("%18.10f",c); } puts sprintf("%.10f",c); end # 2 2.25 # 3 1.6875 # 4 1.265625 # 5 0.94921875