Skip to main content
added 41 characters in body
Source Link
alephalpha
  • 50k
  • 7
  • 68
  • 182

Pari/GP, 45 bytes

(a,b,c)->sum(i=0,(#a-1)/b,a[b*i+1,c*i%#a~+1])

Try it online!Try it online!

Pari/GP, 45 bytes

(a,b,c)->sum(i=0,(#a-1)/b,a[b*i+1,c*i%#a~+1])

Try it online!

Pari/GP, 45 bytes

(a,b,c)->sum(i=0,(#a-1)/b,a[b*i+1,c*i%#a~+1])

Try it online!

Source Link
alephalpha
  • 50k
  • 7
  • 68
  • 182

Pari/GP, 45 bytes

(a,b,c)->sum(i=0,(#a-1)/b,a[b*i+1,c*i%#a~+1])

Try it online!