Skip to main content
deleted 372 characters in body
Source Link
Neil
  • 177.3k
  • 12
  • 74
  • 281

Charcoal, 99 7 bytes

IΣE⊕ηXIθιI↨NE⊕N¹

Try it online! Link is to verbose version of code. Uses @Bubbler's algorithm. Explanation:

    η       Second input
   ⊕        Increment
  E         Map over implicit range
        ι   Current index
       θ    First input
      I     Cast to number
     X      Power
 Σ          Sum
I           Cast to string
            Implicitly print

Unfortunately Power doesn't vectorise otherwise the answer would be 8 bytes:

      Second input as a number
        Literal 0Increment
     …·¹ Make list of `1`s of Inclusivethat rangelength
         First input as a number
  X         Power
 Σ         Base Sumconversion           Cast to string
            Implicitly print

Charcoal, 9 bytes

IΣE⊕ηXIθι

Try it online! Link is to verbose version of code. Explanation:

    η       Second input
   ⊕        Increment
  E         Map over implicit range
        ι   Current index
       θ    First input
      I     Cast to number
     X      Power
 Σ          Sum
I           Cast to string
            Implicitly print

Unfortunately Power doesn't vectorise otherwise the answer would be 8 bytes:

      Second input as a number
        Literal 0
    …·      Inclusive range
         First input as a number
  X         Power
 Σ          Sum           Cast to string
            Implicitly print

Charcoal, 9 7 bytes

I↨NE⊕N¹

Try it online! Link is to verbose version of code. Uses @Bubbler's algorithm. Explanation:

     N  Second input as a number
       Increment
     ¹ Make list of `1`s of that length
  N     First input as a number
       Base conversion
I       Cast to string
        Implicitly print
Source Link
Neil
  • 177.3k
  • 12
  • 74
  • 281

Charcoal, 9 bytes

IΣE⊕ηXIθι

Try it online! Link is to verbose version of code. Explanation:

    η       Second input
   ⊕        Increment
  E         Map over implicit range
        ι   Current index
       θ    First input
      I     Cast to number
     X      Power
 Σ          Sum
I           Cast to string
            Implicitly print

Unfortunately Power doesn't vectorise otherwise the answer would be 8 bytes:

       N    Second input as a number
      ⁰     Literal 0
    …·      Inclusive range
   N        First input as a number
  X         Power
 Σ          Sum
I           Cast to string
            Implicitly print