close
login
A346304
Positions of words in A076478 that start with 1 and end with 0.
5
5, 11, 13, 23, 25, 27, 29, 47, 49, 51, 53, 55, 57, 59, 61, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237
OFFSET
1,1
COMMENTS
The sequences A346303, A171757, A346304, A346305 partition the positive integers. See A076478 for a guide to related sequences.
FORMULA
a(n) = 2*A062383(n)+2*n-1. - Chai Wah Wu, Mar 04 2026
EXAMPLE
The first fourteen words w(n) are 0, 1, 00, 01, 10, 11, 000, 001, 010, 011, 100, 101, 110, 111, so that a(1) = 5.
MATHEMATICA
(* See A007931. *)
PROG
(Python)
def A346304(n): return (1<<n.bit_length()+1)+(n<<1)-1 # Chai Wah Wu, Mar 04 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Clark Kimberling, Jul 21 2021
STATUS
approved