A307591 Lexicographically earliest sequence of distinct positive terms such that, for any n > 0, A000196(2*a(n) + a(n+1)) is a Fibbinary number (A003714).
1, 2, 3, 10, 4, 8, 5, 6, 7, 9, 11, 12, 40, 13, 38, 14, 36, 15, 34, 16, 32, 17, 30, 18, 28, 19, 26, 20, 24, 21, 22, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 174, 52, 152, 42, 172, 56, 144, 43, 170, 60, 136, 44, 168, 64, 128, 45, 166, 68, 120, 46, 164, 72, 112
Offset: 1
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000 (amended by _Georg Fischer_, May 05 2019)
- Rémy Sigrist, Scatterplot of the first 150000 terms
Programs
-
PARI
s=0; v=1; for (n=1, 64, print1 (v ", "); s+=2^v; for (o=1, oo, if (!bittest(s, o), f=sqrtint(2*v+o); if (bitand(f, 2*f)==0, v=o; break))))
Comments