A271591 Second most significant bit of the tribonacci number A000073(n).
0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1
Offset: 4
Examples
(Second MSB in parenthesis) n A000073(n) A000073(n) decimal binary 4 2 -> 1(0) 5 4 -> 1(0)0 6 7 -> 1(1)1 7 13 -> 1(1)01 8 24 -> 1(1)000 9 44 -> 1(0)1100 10 81 -> 1(0)10001 11 149 -> 1(0)010101
Links
- Chai Wah Wu, Table of n, a(n) for n = 4..10000
Programs
-
Mathematica
a = LinearRecurrence[{1, 1, 1}, {0, 0, 1}, 120];(* to generate A000073 *) Table[IntegerDigits[a, 2][[i]][[2]], {i, 5, Length[a]}]
-
Python
A271591_list, a, b, c = [], 0, 1 ,1 for n in range(4,10001): a, b, c = b, c, a+b+c A271591_list.append(int(bin(c)[3])) # Chai Wah Wu, Feb 07 2018
Comments