Skip to main content
fixed username
Source Link
Neil
  • 172.9k
  • 12
  • 72
  • 276

Charcoal, 20 bytes

﹪%.2fX¹·⁰⁶⁴⁴⁹⁴⁴⁵⁻N³¹

Try it online! Link is to verbose version of code. Numeric constant stolen from @JonathanAllen@JonathanAllan. Explanation:

                N      Input as a number
               ⁻ ³¹    Subtract literal 31
     X¹·⁰⁶⁴⁴⁹⁴⁴⁵        Raise literal 1.06449445 to that power
﹪%.2f                   Format using literal format string `%.2f`
                        Implicitly print

Charcoal, 20 bytes

﹪%.2fX¹·⁰⁶⁴⁴⁹⁴⁴⁵⁻N³¹

Try it online! Link is to verbose version of code. Numeric constant stolen from @JonathanAllen. Explanation:

                N      Input as a number
               ⁻ ³¹    Subtract literal 31
     X¹·⁰⁶⁴⁴⁹⁴⁴⁵        Raise literal 1.06449445 to that power
﹪%.2f                   Format using literal format string `%.2f`
                        Implicitly print

Charcoal, 20 bytes

﹪%.2fX¹·⁰⁶⁴⁴⁹⁴⁴⁵⁻N³¹

Try it online! Link is to verbose version of code. Numeric constant stolen from @JonathanAllan. Explanation:

                N      Input as a number
               ⁻ ³¹    Subtract literal 31
     X¹·⁰⁶⁴⁴⁹⁴⁴⁵        Raise literal 1.06449445 to that power
﹪%.2f                   Format using literal format string `%.2f`
                        Implicitly print
Source Link
Neil
  • 172.9k
  • 12
  • 72
  • 276

Charcoal, 20 bytes

﹪%.2fX¹·⁰⁶⁴⁴⁹⁴⁴⁵⁻N³¹

Try it online! Link is to verbose version of code. Numeric constant stolen from @JonathanAllen. Explanation:

                N      Input as a number
               ⁻ ³¹    Subtract literal 31
     X¹·⁰⁶⁴⁴⁹⁴⁴⁵        Raise literal 1.06449445 to that power
﹪%.2f                   Format using literal format string `%.2f`
                        Implicitly print