OFFSET
0,5
LINKS
Reinhard Zumkeller, Rows n = 0..511 of table, flattened
EXAMPLE
12 in binary is 1100. Within this binary representation there is 0 (occurring twice), 1 (occurring twice), 10 (= 2 in decimal), 11 (= 3 in decimal), 100 (= 4 in decimal), 110 (= 6 in decimal) and 1100 (= 12 in decimal).
So row 12 = (0,1,2,3,4,6,12).
PROG
(Haskell)
import Data.List (isInfixOf)
a119709 n k = a119709_tabf !! n !! k
a119709_row n = map (foldr (\d v -> v * 2 + toInteger d) 0) $
filter (`isInfixOf` (a030308_row n)) $ take (n + 1) a030308_tabf
a119709_tabf = map a119709_row [0..]
-- Reinhard Zumkeller, Aug 14 2013
CROSSREFS
KEYWORD
AUTHOR
Leroy Quet, Jun 10 2006
EXTENSIONS
Extended by Ray Chandler, Mar 13 2010
STATUS
approved