Skip to main content
added 108 characters in body
Source Link
ASCII-only
  • 5.1k
  • 21
  • 43

Charcoal, 24 bytes (noncompeting)

NαAIUVN⟦UGPi⁺α¹⟧β§β⁺α›α⁰

Try it online!

Note: As of post time, does not work for n where n is a positive multiple of 14.

Explanation

Nα                             Input number to a
   A                  β        Assign to b
     I                         Cast
       UVN                    Evaluate variable N
            ⟦UGPi⁺α¹⟧         With arguments GetVariable(Pi) and a+1
                        §β⁺α›α⁰ Print b[a+(a>0)]

Charcoal, 24 bytes

NαAIUVN⟦UGPi⁺α¹⟧β§β⁺α›α⁰

Try it online!

Explanation

Nα                             Input number to a
   A                  β        Assign to b
     I                         Cast
       UVN                    Evaluate variable N
            ⟦UGPi⁺α¹⟧         With arguments GetVariable(Pi) and a+1
                        §β⁺α›α⁰ Print b[a+(a>0)]

Charcoal, 24 bytes (noncompeting)

NαAIUVN⟦UGPi⁺α¹⟧β§β⁺α›α⁰

Try it online!

Note: As of post time, does not work for n where n is a positive multiple of 14.

Explanation

Nα                             Input number to a
   A                  β        Assign to b
     I                         Cast
       UVN                    Evaluate variable N
            ⟦UGPi⁺α¹⟧         With arguments GetVariable(Pi) and a+1
                        §β⁺α›α⁰ Print b[a+(a>0)]
Source Link
ASCII-only
  • 5.1k
  • 21
  • 43

Charcoal, 24 bytes

NαAIUVN⟦UGPi⁺α¹⟧β§β⁺α›α⁰

Try it online!

Explanation

Nα                             Input number to a
   A                  β        Assign to b
     I                         Cast
       UVN                    Evaluate variable N
            ⟦UGPi⁺α¹⟧         With arguments GetVariable(Pi) and a+1
                        §β⁺α›α⁰ Print b[a+(a>0)]