OFFSET
1,2
COMMENTS
A000120(a(n) & a(n+1))=1, where & stands for the bitwise AND operator.
Permutation of the natural numbers with inverse A226093. - Reinhard Zumkeller, May 26 2013
LINKS
EXAMPLE
PROG
(Haskell)
import Data.Bits ((.&.))
import Data.List (delete)
a226077 n = a226077_list !! (n-1)
a226077_list = 1 : f 1 [2..] where
f :: Integer -> [Integer] -> [Integer]
f x zs = g zs where
g (y:ys) | a209229 (x .&. y) == 0 = g ys
| otherwise = y : f y (delete y zs)
-- Reinhard Zumkeller, May 26 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, May 25 2013
STATUS
approved