# Ruby 126 + 6382 = 6508
<!-- language-all: lang-ruby -->
1.upto(255){|n|puts n>20?n.to_s(i=(2..8).find{|i|!n.to_s(i)[?0]}).reverse.bytes.map{|c|?+*(c%8)}*?>+'[>[-<'+?+*i+'>]<<]':?+*n}
[Try it online!](https://tio.run/##NcnRCsIgGEDhV6mLUCf9LGEwhumDiERbBl7kZGow1Ge33XR5vrOleW/tBsnHFbNhILm44lMMJydYLx3E9RGwvWMGMBJ4W/fKxZbzfxAle10JbOZrtmBg3qMJ8Hn6XJYiaYeXy0hqJwVFSqgrR/RAS5HQnGs0HeFqaz8 "Ruby – Try It Online")
Converts each value to the smallest base which doesn't contain a zero, and then converts from that base.