In the binary expansion of n replace each run of k 0's (or 1's) with 2k-1 0's (or 1's), except in the most significant run where we double the number of 0's (or 1's).
A129602
In the binary expansion of n replace each run of k 0's (or 1's) with 2k-1 0's (or 1's), except in the most significant run where we double the number of 0's (or 1's).
Terms
- a(0) =0a(1) =3a(2) =6a(3) =15a(4) =24a(5) =13a(6) =30a(7) =63a(8) =96a(9) =49a(10) =26a(11) =55a(12) =120a(13) =61a(14) =126a(15) =255a(16) =384a(17) =193a(18) =98a(19) =199a(20) =104a(21) =53a(22) =110a(23) =223a(24) =480a(25) =241a(26) =122a(27) =247a(28) =504a(29) =253
External references
- oeis: A129602