Skip to main content
Commonmark migration
Source Link

#JavaScript, 20 bytes

JavaScript, 20 bytes

f=n=>n&&n*n*--n+f(n)

Try it online

#JavaScript, 20 bytes

f=n=>n&&n*n*--n+f(n)

Try it online

JavaScript, 20 bytes

f=n=>n&&n*n*--n+f(n)

Try it online

Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript, 20 bytes

f=n=>n&&n*n*--n+f(n)

Try it online