Too Many Oranges

The oranges are stacked as a triangular-based pyramid such that there is one orange on the top, 2 more oranges on the second layer, yet 3 more oranges on the third, and so on until there are 200 pyramidal layers of oranges.

If this big lot is distributed into boxes of 7 oranges each, how many oranges will remain undistributed?

0 2 4 6

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

Relevant wiki: Hockey Stick Identity

According to Hockey Stick Identity , we can rewrite the number of oranges as:

( 2 2 ) + ( 3 2 ) + ( 4 2 ) + + ( 200 2 ) + ( 201 2 ) = ( 201 + 1 2 + 1 ) = ( 202 3 ) \binom{2}{2} + \binom{3}{2} + \binom{4}{2} + \cdots + \binom{200}{2} + \binom{201}{2} = \binom{201+1}{2+1} = \binom{202}{3}

By using Lucas's Theorem , we can find the remainder of modulus 7 7 by rewriting the binomial coefficients as number base 7 7

202 = 40 6 7 202 = {406_{7}}

3 = 3 7 3 = {3_{7}}

( 202 3 ) = ( 40 6 7 3 7 ) ( 4 0 ) ( 0 0 ) ( 6 3 ) ( 6 3 ) 20 6 ( m o d 7 ) \binom{202}{3}= \binom{406_{7}}{3_{7}} \equiv \binom{4}{0} \binom{0}{0} \binom{6}{3} \equiv \binom{6}{3} \equiv 20 \equiv 6 \pmod 7

Therefore, there will be 6 \boxed{6} oranges left as a remainder.

brilliant observation!!

Banibrata Manna - 9 months, 1 week ago
Chew-Seong Cheong
Sep 28, 2016

The number of oranges in k k th layer is the triangular number T k T_k . Therefore, the sum of all oranges in n n layers is given by:

S n = k = 1 n T k = k = 1 n k ( k + 1 ) 2 = 1 2 k = 1 n ( k 2 + k ) = 1 2 ( n ( n + 1 ) ( 2 n + 1 ) 6 + n ( n + 1 ) 2 ) = 1 2 ( n ( n + 1 ) ( 2 n + 4 ) 6 ) = n ( n + 1 ) ( n + 2 ) 6 \begin{aligned} S_n & = \sum_{k=1}^n T_k \\ & = \sum_{k=1}^n \frac {k(k+1)}2 \\ & = \frac 12 \sum_{k=1}^n (k^2 +k) \\ & = \frac 12 \left(\frac {n(n+1)(2n+1)}6+\frac {n(n+1)}2 \right) \\ & = \frac 12 \left(\frac {n(n+1)(2n+4)}6\right) \\ & = \frac {n(n+1)(n+2)}6 \end{aligned}

S 200 200 ( 201 ) ( 202 ) 6 (mod 7) 100 ( 67 ) ( 202 ) (mod 7) 2 ( 4 ) ( 6 ) (mod 7) 48 (mod 7) 6 (mod 7) \begin{aligned} \implies S_{2 00} & \equiv \frac {2 00(201)(202)}6 \text{ (mod 7)} \\ & \equiv 100(67)(202) \text{ (mod 7)} \\ & \equiv 2(4)(6) \text{ (mod 7)} \\ & \equiv 48 \text{ (mod 7)} \\ & \equiv \boxed {6} \text{ (mod 7)} \end{aligned}

Zee Ell
Sep 27, 2016

The number of oranges in each layer are triangular numbers:

T n = 1 + 2 + . . . + n = n ( n + 1 ) 2 = 1 2 ( n 2 + n ) T_n = 1+2+...+n = \frac {n(n+1)}{2} = \frac {1}{2} (n^2+n)

The sum of the oranges in all layers is a tetrahedral number:

P n = T 1 + T 2 + . . . + T n = 1 2 ( ( 1 2 + 2 2 + . . . + n 2 ) + ( 1 + 2 + . . . + n ) ) = P_n = T_1 + T_2 + ... + T_n = \frac {1}{2} ( (1^2 + 2^2 + ... + n^2) + (1+2+...+n) ) =

= 1 2 ( n ( n + 1 ) ( 2 n + 1 ) 6 + n ( n + 1 ) 2 ) = n ( n + 1 ) 4 ( ( 2 n + 1 ) 3 + 1 ) = = \frac {1}{2} ( \frac {n(n+1)(2n+1)}{6} + \frac {n(n+1)}{2} ) = \frac {n(n+1)}{4} ( \frac {(2n+1)}{3} + 1) =

= n ( n + 1 ) 4 ( ( 2 n + 4 ) 3 ) = n ( n + 1 ) ( n + 2 ) 6 = \frac {n(n+1)}{4} ( \frac {(2n+4)}{3} ) = \frac {n(n+1)(n+2)}{6}

In our case n = 200 :

P 200 = 200 × 201 × 202 6 = 1353400 P_{200} = \frac { 200 × 201 × 202}{6} = 1353400

1353400 6 (mod 7) 1353400 \equiv \boxed {6} \text { (mod 7) }

That's what I did, except for the bit with the triangular numbers. I kept getting 36 till I realized that I should've divided by 6 then 7 instead of dividing by 42.

Guy Alves - 4 years, 8 months ago
Affan Morshed
Feb 22, 2019

Let us consider this as summing the series f(n+1)=f(f(n)+n+1) in order up to 200 iterations. We start with 0 before any iteration. Counting this series, we may soon realize discover that the sum is 0 (mod 7) at the 7th iteration. Since f(x)=0, and because of the recursive nature of this function which starts at 0, we can start a new. floor(200/7)=28 so we can fit 28 of the length 7 iterations cycles in the 200 iterations, and since 200-7×28=4, we simply need to calculate the sum for 4 iterations to get the answer, this is 6.

Vinayak Lal
Apr 1, 2018

1st row has 1*2/2 oranges

2nd row has 2*3/2 oranges

. .. ........ nth row has n(n+1)/2 oranges

So, Total no.of oranges available = 1/2(1 2 +2 3 +3 4 +.........................+ 200 201)

On adding...using general term r(r+1)/2

it is found out to be.. 50 * 67 * 404

to find the remainder on dividing by 7

(50 67 404)mod7=(50 mod7 *67 mod 7 *404 mod7 )mod7=4

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...