Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 69 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 14 bytes
(by @user71546)

1/2/Beta[#,2]&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 17 bytes
(by @Not a tree)

⌊(2#+1)^2/8⌋&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 17 bytes
(by @Not a tree)

⌊(2#+1)^2/8⌋&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 14 bytes
(by @user71546)

1/2/Beta[#,2]&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 17 bytes
(by @Not a tree)

⌊(2#+1)^2/8⌋&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]
added 71 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 17 bytes
(by @Not a tree)

⌊(2#+1)^2/8⌋&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 17 bytes
(by @Not a tree)

⌊(2#+1)^2/8⌋&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]
added 80 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 9 bytes

#(#+1)/2&

#Mathematica, 10 bytes

(#^2+#)/2&

#Mathematica, 11 bytes

Tr@Range@#&

#Mathematica, 12 bytes

i~Sum~{i,#}&

#Mathematica, 15 bytes Tr[#&~Array~#]&

#Mathematica, 16 bytes Binomial[#+1,2]&

#Mathematica, 18 bytes

PolygonalNumber@#&

#Mathematica, 19 bytes

#+#2&~Fold~Range@#&

#Mathematica, 20 bytes

(by @Not a tree)

f@0=0;f@i_:=i+f[i-1]
deleted 1 character in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading
added 47 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading
added 54 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading
added 100 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading
added 100 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87
Loading

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