n = 1024 while n>0 do print(n) n = math.floor(n/2) end