Bitwise Interview Question

write suedo code for following pattern . 3 3 6 3 6 9