OFFSET
1,2
COMMENTS
This sequence can be represented as a binary tree. Each left hand child is produced as A091242(n), and each right hand child as A014580(n), when the parent contains n:
|
...................1...................
4 2
8......../ \.......11 5......../ \........3
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
14 31 17 47 9 13 6 7
21 61 42 185 24 87 62 319 15 37 20 59 10 19 12 25
etc.
Because 2 is the only even term in A014580, it implies that, apart from a(3)=2, all other odd positions contain an odd number. There are also odd numbers in the even bisection, precisely all the terms of A246156 in some order, together with all even numbers larger than 2 that are also there. See also comments in A246201.
LINKS
FORMULA
As a composition of related permutations:
Other identities:
PROG
(PARI)
allocatemem((2^31)+(2^30));
uplim = (2^25) + (2^24);
v014580 = vector(2^24);
v091242 = vector(uplim);
isA014580(n)=polisirreducible(Pol(binary(n))*Mod(1, 2)); \\ This function from Charles R Greathouse IV
i=0; j=0; n=2; while((n < uplim), if(isA014580(n), i++; v014580[i] = n, j++; v091242[j] = n); n++)
for(n=1, 638, write("b246202.txt", n, " ", A246202(n)));
\\ Works with PARI Version 2.7.4. - Antti Karttunen, Jul 25 2015
(Scheme, with memoization-macro definec)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Antti Karttunen, Aug 19 2014
STATUS
approved