Skip to main content
edited body
Source Link
Nick Kennedy
  • 21.2k
  • 3
  • 17
  • 43

Vyxal 3, 7 bytes

ė*∦⌊⌈$*

Try it Online!

Takes two integers as its argument and returns two integers. Works the same as various other answers including @mathscat’s Vyxal one and @UnrelatedString’s Jelly one.

Explanation

ė*∦⌊⌈$*
ė       | ReciprocslReciprocal of n
 *      | To the power of p
  ∦⌊⌈   | Pair ceiling with floor and wrap in a list
     $* | To the power of p

```

Vyxal 3, 7 bytes

ė*∦⌊⌈$*

Try it Online!

Takes two integers as its argument and returns two integers. Works the same as various other answers including @mathscat’s Vyxal one and @UnrelatedString’s Jelly one.

Explanation

ė*∦⌊⌈$*
ė       | Reciprocsl of n
 *      | To the power of p
  ∦⌊⌈   | Pair ceiling with floor and wrap in a list
     $* | To the power of p

```

Vyxal 3, 7 bytes

ė*∦⌊⌈$*

Try it Online!

Takes two integers as its argument and returns two integers. Works the same as various other answers including @mathscat’s Vyxal one and @UnrelatedString’s Jelly one.

Explanation

ė*∦⌊⌈$*
ė       | Reciprocal of n
 *      | To the power of p
  ∦⌊⌈   | Pair ceiling with floor and wrap in a list
     $* | To the power of p

```
Source Link
Nick Kennedy
  • 21.2k
  • 3
  • 17
  • 43

Vyxal 3, 7 bytes

ė*∦⌊⌈$*

Try it Online!

Takes two integers as its argument and returns two integers. Works the same as various other answers including @mathscat’s Vyxal one and @UnrelatedString’s Jelly one.

Explanation

ė*∦⌊⌈$*
ė       | Reciprocsl of n
 *      | To the power of p
  ∦⌊⌈   | Pair ceiling with floor and wrap in a list
     $* | To the power of p

```