OFFSET
1,2
LINKS
EXAMPLE
7-22-11-34-17-52-26-13-40-20-10-5-16-8-[4-2-1]*:
{1,2,4,5,7} is the set of numbers <= n, occurring in this trajectory, therefore a(7) = #{7, 5+2, 5+1+1, 4+2+1, 4+1+1+1, 2+2+2+1, 2+2+1+1+1, 2+1+1+1+1+1, 1+1+1+1+1+1+1} = 9.
PROG
(Haskell)
a160000 n = p (takeWhile (<= n) $ sort $ a070165_row n) n where
p _ 0 = 1
p [] _ = 0
p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m
-- Reinhard Zumkeller, Sep 01 2012
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Reinhard Zumkeller, May 11 2009
STATUS
approved