I would prefer `"%02d%s" % [n % 50 + 1, ('A'..'Z').to_a[n / 50 % 26]]` instead of `+`