Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6), 26 bytes

JavaScript (ES6), 26 bytes

Returns the \$n\$th term, 1-indexed.

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!

#JavaScript (ES6), 26 bytes

Returns the \$n\$th term, 1-indexed.

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!

JavaScript (ES6), 26 bytes

Returns the \$n\$th term, 1-indexed.

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!

updated test cases
Source Link
Arnauld
  • 197.7k
  • 20
  • 179
  • 650

#JavaScript (ES6), 26 bytes

Returns the \$n\$th term, 1-indexed.

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!Try it online!

#JavaScript (ES6), 26 bytes

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!

#JavaScript (ES6), 26 bytes

Returns the \$n\$th term, 1-indexed.

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!

Source Link
Arnauld
  • 197.7k
  • 20
  • 179
  • 650

#JavaScript (ES6), 26 bytes

f=n=>n--&&[f(n/6|0)]+6-n%6

Try it online!