OFFSET
0,3
COMMENTS
This sequence has similarities with A003188, where we invert the rightmost possible binary digit.
This sequence appears to be a permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, PARI program for A340250
Rémy Sigrist, Binary plot of the sequence for n = 0..256
EXAMPLE
The first terms, alongside their binary representation, are:
n a(n) bin(a(n))
-- ---- ---------
0 0 0
1 1 1
2 3 11
3 2 10
4 6 110
5 4 100
6 5 101
7 7 111
8 15 1111
9 11 1011
10 9 1001
11 13 1101
12 12 1100
13 8 1000
14 10 1010
15 14 1110
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 02 2021
STATUS
approved