Skip to main content
2 of 2
⍣=, -2 bytes
RubenVerg
  • 954
  • 4
  • 17

Dyalog APL, 12 10 bytes

-2 thanks to Adám

{⎕←2×⍵}⍣=1

Explanation:

  • 1 starting from one,
  • ⍣= until the last result and the current one are equal (never, so infinite loop)
  • {⎕←2×⍵} double it at each iteration, printing it
RubenVerg
  • 954
  • 4
  • 17