OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
The terms that are <= 9 are a(1) through a(4). So a(9) = a(8) + a(1) + a(2) + a(3) + a(4) = 48 + 1 + 2 + 5 + 8 = 64.
MAPLE
a[1]:=1: for n from 2 to 60 do b:=a[n-1]: for j from 1 to n-1 do if a[j]<=n then b:=b+a[j] else b:=b: fi: od: a[n]:=b: od: seq(a[n], n=1..60); # Emeric Deutsch, Apr 10 2007
PROG
(Haskell)
a129299 n = a129299_list !! (n-1)
a129299_list = 1 : f [1] 2 where
f xs@(x:_) k = y : f (y:xs) (k+1) where
y = x + sum [z | z <- xs, z <= k]
-- Reinhard Zumkeller, Feb 09 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 08 2007
EXTENSIONS
More terms from Emeric Deutsch, Apr 10 2007
STATUS
approved