OFFSET
1,2
COMMENTS
This sequence is a permutation of the natural numbers (as odd-indexed terms are not constrained); see A316472 for the inverse sequence.
In the binary plot of the sequence, if the pixel (x, y) is on, then the pixel (2*x, y) is on.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8191
Rémy Sigrist, Colored scatterplot of the first 2^14-1 terms (where the color is function of the 2-adic valuation of n)
Rémy Sigrist, PARI program for A316385
FORMULA
EXAMPLE
The first terms, alongside the binary representations of a(n) and of a(2*n), are:
n a(n) bin(a(n)) bin(a(2n))
-- ---- --------- ----------
1 1 1 11
2 3 11 111
3 2 10 110
4 7 111 1111
5 4 100 1100
6 6 110 1110
7 5 101 1101
8 15 1111 11111
9 8 1000 11000
10 12 1100 11100
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 01 2018
STATUS
approved