Looking for a formula to represent the sequence $2,4,2,8,2,4,2,16,2,4,2,8,\dots$ Is there a formula with which I can represent the sequence $2,4,2,8,2,4,2,16,2,4,2,8,\dots$?

Go to oeis.org  (Online Encyclopedia of Integer Sequences)
Put 2,4,2,8,2,4,2,16,2,4,2,8 into the box
click the "Search" button
get two different named sequences that contain this:
A209675, the Radon function at even positions
A171977, a(n) = 2^(k+1) where 2^k is the highest power of 2 dividing n
An added bonus: this will often give you additional properties, references, and remarks about the sequence
