a(n) = floor(a(n-1)/2) if this is positive and not yet in the sequence, otherwise a(n) = 9*a(n-1).

A050016

a(n) = floor(a(n-1)/2) if this is positive and not yet in the sequence, otherwise a(n) = 9*a(n-1).

Terms

    a(0) =1a(1) =9a(2) =4a(3) =2a(4) =18a(5) =162a(6) =81a(7) =40a(8) =20a(9) =10a(10) =5a(11) =45a(12) =22a(13) =11a(14) =99a(15) =49a(16) =24a(17) =12a(18) =6a(19) =3a(20) =27a(21) =13a(22) =117a(23) =58a(24) =29a(25) =14a(26) =7a(27) =63a(28) =31a(29) =15

External references