Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#CJam, 46 45 43 42 bytes
ri){Is___69`96`erW%=!\6809`-!&IA%g&'.*N}fI
I think it can be golfed a little more.
Takes n from STDIN.
n
Try it online here
#CJam, 46 45 43 4342 bytes
ri),{Is___69s_W%erW%=Is___69`96`erW%=!\6809s\6809`-!&IA%g&'.*N}fI
#CJam, 46 45 43 bytes
ri),{Is___69s_W%erW%=!\6809s-!&IA%g&'.*N}fI
#CJam, 46 45 4543 bytes
ri),{Is___"69"_W%erW%=Is___69s_W%erW%=!\"6809"\6809s-!&IA%g&'.*N}fI
#CJam, 46 45 bytes
ri),{Is___"69"_W%erW%=!\"6809"-!&IA%g&'.*N}fI