login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A265853 a(0)=1; for n >= 1, a(n) is the number of subsets of [a(0), a(1), ..., a(n-1)] whose sum is equal to a(n-1). 2
1, 1, 2, 2, 3, 5, 6, 8, 11, 17, 25, 33, 41, 52, 80, 139, 204, 245, 289, 410, 692, 1159, 1477, 2010, 2769, 4247, 6128, 7709, 9817, 14071, 21982, 34892, 52079, 63998, 81167, 122709, 183662, 267520, 382690, 521361, 725601, 1050579, 1541163, 2084690, 2829408 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..85 (first 71 terms from Bert Dobbelaere)
FORMULA
a(0) = 1; a(n) = [x^a(n-1)] Product_{k=0..n-1} (1 + x^a(k)). - Ilya Gutkovskiy, Jan 24 2024
EXAMPLE
a(4) = 3 because there are subsets of [1, 1, 2, 2] that sum to a(3) = 2: {1, 1}, {2}, {2}.
MAPLE
s:= proc(n) option remember; `if`(n<0, 0, s(n-1)+a(n)) end:
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(s(i)<n, 0,
b(n, i-1)+ (p-> `if`(p>=0, b(p, i-1), 0))(n-a(i))))
end:
a:= n-> `if`(n=0, 1, b(a(n-1), n-1)):
seq(a(n), n=0..44); # Alois P. Heinz, Jan 24 2024
MATHEMATICA
lst={1}; n=1; While[n<30, lst = Join[lst, {Length@Select[Total /@ Subsets[lst], #==Last[lst]&]}]; n++]
CROSSREFS
Cf. A057601.
Sequence in context: A178927 A076571 A084783 * A129838 A032153 A309223
KEYWORD
nonn
AUTHOR
Melvin Peralta, Dec 21 2015
EXTENSIONS
More terms from Bert Dobbelaere, Oct 28 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 17:57 EDT 2024. Contains 372297 sequences. (Running on oeis4.)