Skip to main content
1 of 5
Arnauld
  • 197.6k
  • 20
  • 179
  • 650

#JavaScript (ES6), 43 bytes

Returns the sequence as a comma-separated string.

f=(n=98)=>n?f(n-=n-27?n%10?1:2:11)+[,n+3]:1

Try it online!

Arnauld
  • 197.6k
  • 20
  • 179
  • 650