OFFSET
1,2
COMMENTS
This is a permutation of the positive numbers.
LINKS
EXAMPLE
3 has 2 1's in its binary expansion, and the 2nd positive number not among the previous terms is 4; hence a(3)=4
PROG
(Haskell)
import Data.List (delete)
a217122 n = a217122_list !! (n-1)
a217122_list = f 1 [0..] where
f x zs = y : f (x + 1) (delete y zs) where
y = zs !! a000120 x
-- Reinhard Zumkeller, May 11 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, Mar 16 2013
STATUS
approved