login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A266351 Start with a(1) = 1, then always choose for a(n) the least unused number such that A057889(a(n)*a(n-1)) = A057889(a(n)) * A057889(a(n-1)), where A057889 is a bijective base-2 reverse. 6
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 11, 17, 13, 32, 15, 24, 18, 20, 19, 33, 21, 36, 28, 27, 56, 34, 22, 64, 23, 65, 25, 40, 35, 72, 42, 48, 30, 51, 60, 66, 26, 68, 37, 96, 31, 99, 62, 128, 29, 129, 38, 80, 49, 73, 70, 130, 39, 256, 41, 131, 74, 136, 44, 132, 46, 257, 43, 258, 45, 260, 47, 512, 50, 133, 76, 160, 67, 84, 97, 137, 112, 54 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Equally: always choose for a(n) the least unused number such that a(n)*a(n-1) = A057889(A057889(a(n)) * A057889(a(n-1))).
Note that the adjacent terms of permutation A266195 satisfy the same condition, except that permutation is not the lexicographically earliest sequence of this kind (because it has a more restrictive condition). See A266194.
This is a bijection for the same reason that A266195 is. Any high enough 2^k will always save the permutation of being stuck, and will also immediately pick up as its succeeding pair the least term unused so far.
LINKS
PROG
(Scheme, with defineperm1-macro from Antti Karttunen's IntSeq-library)
(defineperm1 (A266351 n) (cond ((= 1 n) n) (else (let ((prev (A266351 (- n 1)))) (let loop ((k 1)) (cond ((and (not-lte? (A266352 k) (- n 1)) (= (A057889 (* k prev)) (* (A057889 k) (A057889 prev)))) k) (else (loop (+ 1 k)))))))))
;; We consider a > b (i.e. not less than b) also in case a is #f.
;; (Because of the stateful caching system used by defineperm1-macro):
(define (not-lte? a b) (cond ((not (number? a)) #t) (else (> a b))))
CROSSREFS
Inverse: A266352.
Cf. A266195, A265405, A266405 (similar sequences).
Sequence in context: A165412 A180042 A096868 * A206718 A343160 A190760
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Dec 28 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 19:39 EDT 2024. Contains 371963 sequences. (Running on oeis4.)