Skip to main content
Commonmark migration
Source Link

#Groovy, 26 bytes

Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

#Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

#Groovy, 26 bytes

This answer was basically stolen from @Geobits@Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

#Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

#Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.

Source Link
Magic Octopus Urn
  • 20.9k
  • 6
  • 66
  • 140

#Groovy, 26 bytes

This answer was basically stolen from @Geobits.

a={n->n--?a(n)*~-a(n)+1:2} 

Took that answer and, using groovy shortcuts, optimized it further.