One-based position of the first 2 from the least significant digit in the ternary expansion of 2^n, or 0 if there are no 2's present.
A117971
One-based position of the first 2 from the least significant digit in the ternary expansion of 2^n, or 0 if there are no 2's present.
Terms
- a(0) =0a(1) =1a(2) =0a(3) =1a(4) =2a(5) =1a(6) =4a(7) =1a(8) =0a(9) =1a(10) =2a(11) =1a(12) =3a(13) =1a(14) =3a(15) =1a(16) =2a(17) =1a(18) =5a(19) =1a(20) =8a(21) =1a(22) =2a(23) =1a(24) =11a(25) =1a(26) =11a(27) =1a(28) =2a(29) =1
External references
- oeis: A117971