Skip to main content
deleted 61 characters in body
Source Link
Noodle9
  • 20.2k
  • 3
  • 20
  • 45

Python 3, 52 3636 35 bytes

SaveSaved a whopping 1616 17 bytes thanks to Jonathan Allan!!!

lambda n:round(1.06449445**0644944**(n-31),2)

Try it online!

Port of my C answer.Try it online!

Python 3, 52 36 bytes

Save a whopping 16 bytes thanks to Jonathan Allan!!!

lambda n:round(1.06449445**(n-31),2)

Try it online!

Port of my C answer.

Python 3, 52 36 35 bytes

Saved a whopping 16 17 bytes thanks to Jonathan Allan!!!

lambda n:round(1.0644944**(n-31),2)

Try it online!

added 99 characters in body
Source Link
Noodle9
  • 20.2k
  • 3
  • 20
  • 45

Python 3, 5252 36 bytes

Save a whopping 16 bytes thanks to Jonathan Allan!!!

lambda n:intround(math1.exp06449445**(-~n/16n-231)*100,2)/100
import math

Try it online!Try it online!

Port of my C answer.

Python 3, 52 bytes

lambda n:int(math.exp(-~n/16-2)*100)/100
import math

Try it online!

Port of my C answer.

Python 3, 52 36 bytes

Save a whopping 16 bytes thanks to Jonathan Allan!!!

lambda n:round(1.06449445**(n-31),2)

Try it online!

Port of my C answer.

Source Link
Noodle9
  • 20.2k
  • 3
  • 20
  • 45

Python 3, 52 bytes

lambda n:int(math.exp(-~n/16-2)*100)/100
import math

Try it online!

Port of my C answer.