Skip to main content
added 97 characters in body
Source Link
user92069
user92069

05AB1E, 7 bytes

Just another portPort of Dingus's Ruby answer. (It's A308879. From that page, it says that the sequence is also "the n-digit integer m that maximizes sin(m)"...)

°LΣŽ}θ

Try it online!

Explanation

°       10 ** n
 L      1 range
  Σ     Sort by:
   Ž}  Sine
      θ Maximum under that mapping

05AB1E, 7 bytes

Just another port of Dingus's Ruby answer.

°LΣŽ}θ

Try it online!

Explanation

°       10 ** n
 L      1 range
  Σ     Sort by:
   Ž}  Sine
      θ Maximum under that mapping

05AB1E, 7 bytes

Port of Dingus's answer. (It's A308879. From that page, it says that the sequence is also "the n-digit integer m that maximizes sin(m)"...)

°LΣŽ}θ

Try it online!

Explanation

°       10 ** n
 L      1 range
  Σ     Sort by:
   Ž}  Sine
      θ Maximum under that mapping
Source Link
user92069
user92069

05AB1E, 7 bytes

Just another port of Dingus's Ruby answer.

°LΣŽ}θ

Try it online!

Explanation

°       10 ** n
 L      1 range
  Σ     Sort by:
   Ž}  Sine
      θ Maximum under that mapping