Skip to main content
1 of 2
Jonathan Allan
  • 110.2k
  • 7
  • 65
  • 282

Python 3, 38 bytes

lambda n:n*12-11-([1]*n+[2,4,4,0])[-n]

Try it online!

Jonathan Allan
  • 110.2k
  • 7
  • 65
  • 282