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 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

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

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

ApprovedApproved
Last Activity: 14 Years ago
keshav kr

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

Last Activity: 14 Years ago
Nikhilesh Reddy

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

Last Activity: 14 Years ago
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