Policeman Thief Problem

Policeman Thief Problem

A thief is capable of running 20kms a day. A policeman who is to catch the thief can run 1km on the 1st day, 2kms on the 2nd day and so on. Then how long will it take the policeman to catch the thief?
Solution :
 Let n be no. of days be “n”
1+2+3….+n=20*n
n (n+1)/2=20*n
on solving n=0 or n=39
n=0 is not possible, so n=39
39 days

Comments

HTML/JAVASCRIPT

Popular posts from this blog

Teradata SQL Assistant Shortcuts

How to List All Tables in Oracle, MySql, Teradata, DB2 and PostgreSQL

7473 Requested sample is larger than table rows. All rows returned