Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 1: 1/1
  2. 2: 3/2 (1/1 + 1/2)
  3. 3: 11/6 (1/1 + 1/2 + 1/3)
  4. 4: 25/12 etc.
  5. 5: 137/60
  6. 6: 49/20
  7. 20: 55825125/15519504
  8. 56: 252476961434436524654789/54749786241679275146400
  9. 226: 31741146384418617995319820836410246588253008380307063166243468230254437801429301078323028997161/5290225078451893176693594241665890914638817631063334447389979640757204083936351078274058192000
  10.  
  11. import fractions
  12. def f(x):
  13. return sum(fractions.Fraction(1,i) for i in range(1,x+1))
Add Comment
Please, Sign In to add comment