OFFSET
1,2
COMMENTS
This sequence is a permutation of the natural numbers with inverse A330577.
Apparently:
- for m > 1, the m-th run of consecutive terms such that gcd(6, a(n)) = 1 or 6 has 4*m-3 terms,
- for m > 1, the m-th run of consecutive terms such that gcd(6, a(n)) = 2 or 3 has 4*m-1 terms.
LINKS
EXAMPLE
The first terms, alongside their product with the next term, are:
n a(n) a(n)*a(n+1)
-- ---- -----------
1 1 6
2 6 12
3 2 6
4 3 12
5 4 36
6 9 72
7 8 96
8 12 60
9 5 90
10 18 126
PROG
(PARI) s=0; v=1; for (n=1, 10 000, print (n " " v); s+=2^v; for (w=1, oo, if (!bittest(s, w) && (v*w)%6==0, v=w; break)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 17 2019
STATUS
approved