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!)
A242291 Greedy-summable tetrahedral numbers. 4
35, 56, 120, 165, 220, 286, 560, 680, 1330, 1540, 1771, 2300, 2600, 2925, 3654, 4495, 4960, 6545, 7140, 7770, 9880, 11480, 12341, 14190, 15180, 16215, 18424, 19600, 20825, 22100, 23426, 27720, 29260, 30856, 35990, 39711, 43680, 45760, 47905, 52394, 54740 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Greedy summability is defined at A242288.
LINKS
EXAMPLE
Let s(n) = n(n+1)(n+2)/6 = A000292(n). Then
a(1) = 35 = 20 + 10 + 4 + 1;
a(2) = 56 = 35 + 20 + 1;
a(3) = 120 = 84 + 35 + 1;
a(4) = 165 = 120 + 35 + 10.
MATHEMATICA
z = 200; s = Table[n (n + 1)(n + 2)/6, {n, 1, z}]; t = Table[{s[[n]], #, Total[#] == s[[n]]} &[DeleteCases[-Differences[FoldList[If[#1 - #2 >= 0, #1 - #2, #1] &, s[[n]], Reverse[Select[s, # < s[[n]] &]]]], 0]], {n, z}]
r[n_] := s[[n]] - Total[t[[n]][[2]]];
tr = Table[r[n], {n, 2, z}] (* A242288 *)
c = Table[Length[t[[n]][[2]]], {n, 2, z}] (* A242289 *)
f = 1 + Flatten[Position[tr, 0]] (* A242290*)
f (f + 1)(f + 2)/6 (* A242291 *) (* Peter J. C. Moses, May 06 2014 *)
CROSSREFS
Sequence in context: A090877 A048033 A254366 * A078819 A189554 A351095
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 10 2014
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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)