Flag Algebra> find the no...
question mark

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

keshav kr , 13 Years ago
Grade 12
anser 3 Answers
Rathod Shankar AskiitiansExpert-IITB

Last Activity: 13 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

Last Activity: 13 Years ago

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

Nikhilesh Reddy

Last Activity: 13 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

Provide a better Answer & Earn Cool Goodies

Enter text here...
star
LIVE ONLINE CLASSES

Prepraring for the competition made easy just by live online class.

tv

Full Live Access

material

Study Material

removal

Live Doubts Solving

assignment

Daily Class Assignments


Ask a Doubt

Get your questions answered by the expert for free

Enter text here...