login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117670 Triangle read by rows: see comments lines for definition. 0
1, 2, 3, 3, 6, 7, 4, 10, 14, 15, 5, 15, 25, 30, 31, 6, 21, 41, 56, 62, 63, 7, 28, 63, 98, 119, 126, 127, 8, 36, 92, 162, 218, 246, 254, 255, 9, 45, 129, 255, 381, 465, 501, 510, 511, 10, 55, 175, 385, 637, 847, 967, 1012, 1022, 1023 (list; table; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Imagine that you are in a building with floors starting at floor 1, the lowest floor and you have a large number of eggs. For each floor in the building, you want to know whether or not an egg dropped from that floor will break.

If an egg breaks when dropped from floor i, then all eggs are guaranteed to break when dropped from any floor j > i. Likewise, if an egg doesn't break when dropped from floor i, then all eggs are guaranteed to never break when dropped from any floor j <= i.

a(n,k) is the maximum number of floors where you can determine whether or not an egg will break when dropped from any floor, with the following restrictions: you may drop a maximum of n eggs (one at a time, from any floors of your choosing) and you may break a maximum of k eggs.

Each row of the triangle is the running sum of the corresponding row with the first 1 omitted of Pascal's triangle (A007318).

LINKS

Google code.jam

FORMULA

Triangular array by rows: a(n,1)=n ; a(n,n)=2^n-1; a(n+1,k+1) = 1 + a(n,k) + a(n,k-1) (0 < k < n )

EXAMPLE

Triangle begins:

1,

2,3,

3,6,7,

4,10,14,15,

5,15,25,30,31,

6,21,41,56,62,63,

...

CROSSREFS

Sequence in context: A143715 A159685 A187262 * A181695 A184830 A025499

Adjacent sequences:  A117667 A117668 A117669 * A117671 A117672 A117673

KEYWORD

nonn,tabl

AUTHOR

Arie Bos (arie.0.bos(AT)gmail.com), Jul 06 2008, Jul 08 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 23:53 EST 2012. Contains 205689 sequences.