OFFSET
1,3
COMMENTS
LINKS
Reinhard Zumkeller, Rows n = 1..512 of table, flattened
EXAMPLE
6 in binary is 110. The distinct positive integers that occur as substrings in n when they and n are written in binary are: 1 (1 in binary), 2 (10 in binary), 3 (11 in binary), and 6 (110 in binary). So row 6 is (1,2,3,6).
PROG
(Haskell)
a165416 n k = a165416_tabf !! (n-1) !! (k-1)
a165416_row n = a165416_tabf !! (n-1)
a165416_tabf = map (dropWhile (== 0)) $ tail a119709_tabf
-- Reinhard Zumkeller, Aug 14 2013
CROSSREFS
KEYWORD
AUTHOR
Leroy Quet, Sep 17 2009
EXTENSIONS
Extended by Ray Chandler, Mar 13 2010
STATUS
approved