Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1: 1/1
- 2: 3/2 (1/1 + 1/2)
- 3: 11/6 (1/1 + 1/2 + 1/3)
- 4: 25/12 etc.
- 5: 137/60
- 6: 49/20
- 20: 55825125/15519504
- 56: 252476961434436524654789/54749786241679275146400
- 226: 31741146384418617995319820836410246588253008380307063166243468230254437801429301078323028997161/5290225078451893176693594241665890914638817631063334447389979640757204083936351078274058192000
- import fractions
- def f(x):
- return sum(fractions.Fraction(1,i) for i in range(1,x+1))
Add Comment
Please, Sign In to add comment