Intervals

Consider a row of tiles, numbered from 1 to 10 000.

By an interval we mean one or more consecutive tiles. For instance, there are precisely 6001 intervals of length 4000.

The 172 9 th 1729^\text{th} tile is marked with a red cross.

How many intervals are there that contain the tile with the cross?


The answer is 14302288.

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.

1 solution

Arjen Vreugdenhil
Apr 27, 2016

General solution for n n tiles, with the cross on the a a th tile:

The first tile of the interval is any tile between 1 and a a ; this gives a a choices.

The last tile is any tile between a a and n n ; this gives n + 1 a n+1-a choices.

Since the tiles can be chosen independent of each other, there are N = a ( n + 1 a ) N = a(n+1-a) intervals containing the red cross.

Here, N = 1729 ( 10 001 1729 ) = 14 302 288 N = 1729\cdot (10\:001-1729) = \boxed{14\:302\:288} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...