OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
See A262411.
PROG
(Haskell)
import Data.List (inits, tails, intersect, delete)
a262412 n = a262412_list !! (n - 1)
a262412_list = 1 : f [1] (drop 2 a030341_tabf) where
f xs tss = g tss where
g (ys:yss) | null (intersect its $ tail $ inits ys) &&
null (intersect tis $ init $ tails ys) = g yss
| otherwise = (foldr (\t v -> 10 * v + t) 0 ys) :
f ys (delete ys tss)
its = init $ tails xs; tis = tail $ inits xs
-- Reinhard Zumkeller, Sep 22 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Sep 22 2015
STATUS
approved