OFFSET
0,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
PROG
(Haskell)
a246398 n = a246398_list !! n
a246398_list = f 0 $ map show a000040_list where
f x pss = (length ps - length xs) :
f (x + 1) (dropWhile (== xs) pss)
where ps = head [qs | qs <- pss, isin xs qs]; xs = show x
isin [] _ = True
isin _ [] = False
isin (u:us) vs = not (null ws) && isin us ws
where ws = dropWhile (/= u) vs
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 13 2014
STATUS
approved