M_SEQ  Mosty! Find Gn
Omar want to examine Mostafa in math , Mostafa asked to give G(n) that defined as :
while :
Mostafa need your help to find G(n) ( n : givin integer)
assume that : F(1) = 8 , F(2) = 8;
Input
T number of test cases in the first line , T line follow with an integer n .
Output
Print G(n) for each test case with 8 decimal digits after the point ( 0 < G(n) < 3)
Example
Input: 3
5
7
42
Output:2.20000000 2.14285714 2.02380952
T < 10^4
2 < n < 10^9
hide comments
cs_abhi2000:
20170126 07:21:19
Maths,Maths,Maths... 

okyan48:
20170123 13:42:29
how to solve this problem? please help me... 

rahul_verma:
20151030 00:31:34
nice & easy maths !!!! AC in 1st go...


adi_tri:
20150922 21:55:50
Yup..in one go.. 

ASHUTOSH DWIVEDI:
20150701 19:16:59
@ checks


Satyam Mishra:
20141230 08:37:14
little pen and paper work to do.....


Raghav Aggiwal:
20141015 16:27:35
Ac in one go!


RIVU DAS:
20150130 06:35:34
Easy one!! 

Sir_Ostara:
20140106 18:52:03
Beautiful.. Last edit: 20140106 18:52:46 
Added by:  omar alkattan 
Date:  20130220 
Time limit:  0.622s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All 
Resource:  own 