local s = {1} local n = 2 for p = 2, 66 do table.insert(s, n) if s[p] == 2 then table.insert(s, n) end n = (n == 1) and 2 or 1 end print(table.concat(s, ","))