Skip to main content
1 of 2
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

Python 3, 62 bytes, A017016

n=int(input())
print(sum(1for i in"A017016"if i>"0")*-~n//-~n)

Try it online!

Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214