OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..99
PROG
(Haskell)
a099620 n = f (p - 1) $ drop (a099619 n) a098962_list where
f c (x:xs) | c == 1 = if m == 0 then x else f 1 xs
| m /= 0 = f c xs
| m == 0 = f (c - if x' == p then 2 else 1) xs
where (x', m) = divMod x p
p = a000040 n
-- Reinhard Zumkeller, Feb 18 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 26 2004
STATUS
approved