Guest

find the least no which when divided by 17 ,16,15 and the remainder is 3.10,0 respectively means u have to find that no which is divided by 17 then it leaves the remainder 3 when divided by 16 leaves remainder 10 and when divi ded by 15 leaves remainder 0

 find the least no which when divided by 17 ,16,15 and the remainder is 3.10,0 respectively  means u have to find


that no which is divided by 17 then it leaves the remainder


3 when divided by 16 leaves remainder 10 and when divi


ded by 15 leaves remainder 0

Grade:12

3 Answers

Rathod Shankar AskiitiansExpert-IITB
69 Points
12 years ago

The code for the above problem is written in python as follos

for x in range(0,1000):
    a=15*x
    y=a%16
    if y==10 :
        z=a%17
        if z==3:
            print(a)

 

The output of the above code is

3930
8010
12090

so the least possible value is 3930

keshav kr
23 Points
12 years ago

the ans which u provide that is wrong this ans is not satisfying my condition plz improve it 

Nikhilesh Reddy
16 Points
12 years ago

We can  find the value using c program.....

 

#include<stdio.h>

#include<conio.h>

#include<math.h>

main()

{     

int a,x,y,z,n;     

x=0;     

y=3;     

z=10;              

for(a=0;a<=100;a++)

 

{

  if((y==a%17) && (z==a%16) && (x==a%15))

printf("%d",a);

}

getch();

}

 

 

 

we can get the output as 3930 and 8010 (from 0 to 10000) 

so the lowest number is 3930

Think You Can Provide A Better Answer ?

ASK QUESTION

Get your questions answered by the expert for free