Revision ec45e4b4-ebeb-41b4-ae66-07f855030c16 - Code Golf Stack Exchange

# [Jelly], 2 bytes

 RS

## Explanation

 RS
 
 implicit input
 S sum of the...
 R inclusive range [1..input]
 implicit output

[Try it online!][TIO-j5a1rxes]

## Gauss sum, 3 bytes

 ‘×H

### Explanation

 ‘×H

 implicit input
 H half of the quantity of...
 ‘ input + 1...
 × times input
 implicit output

[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-j5a1rxes]: https://tio.run/##y0rNyan8/z8o@P///6YA "Jelly – Try It Online"

AltStyle によって変換されたページ (->オリジナル) /