Skip to main content
added 39 characters in body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Julia, 3131 27 bytes

4 bytes saved thanks to @Dennis

!n=n⋅(1n=2n[i=1:length(n))*2%sumend]⋅i%sum(n)<1 

Try it online!Try it online!

Julia, 31 bytes

!n=n⋅(1:length(n))*2%sum(n)<1 

Try it online!

Julia, 31 27 bytes

4 bytes saved thanks to @Dennis

!n=2n[i=1:end]⋅i%sum(n)<1 

Try it online!

Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Julia, 31 bytes

!n=n⋅(1:length(n))*2%sum(n)<1 

Try it online!