south east
Answer: 3121 gold coins
Let total no of coins be M
Let the disbursement D to each son:
D1 = 1 + (M – 1)/5 = (M + 4)/5
D2 = 1 + ( M – D1 -1)/5 = (D1) * 4/5
D3= (D2) * 4/5
D4= (D3) * 4/5
D5= (D4) * 4/5
Total disbursements to sons=
= ∑D= (M+4)*1/5[ 1+4/5+(4/5)(4/5)+ (4/5)(4/5)(4/5)+(4/5)(4/5)(4/5)(4/5) ]
= (2101/3125)*(M+4)
Thus balance left for daughters =M-{(2101/3125)*(M+4)}
=(1024M-8404)/3125
This balance should be a positive integer ( assuming M and all disbursements are full coins )
Thus 1024M-8404 should be a multiple of 3125….so….
1024M – 8404 = N*3125 where N is an integer
Using Python code:
n=int(input(“Enter num n: “))
X=int()
a=int()
a=0
X=’ ‘
for a in range(0,n+1):
a=a+1
X= (3125*a + 8404)/1024
if (3125*a + 8404)% 1024== 0:
print(X,a)
Enter num n: 10000
3121.0 1020
6246.0 2044
9371.0 3068
12496.0 4092
15621.0 5116
18746.0 6140
21871.0 7164
24996.0 8188
28121.0 9212
We get minimum value of N = 1021 and M = 3121 gold coins
let convert meter to kilometer by multiply 18/5 then answer be 14*(18/5)=50.4 km/s
c
Matches played: 60.
Matches won: 30% of 60 => (60*(30/100)) = 18 matches.
Iterative approach:
On adding 1 to matches played and matches won, on every iteration until the win percentage gets to 50. So
19 / 61 = 0.3114754098360656
20 / 62 = 0.3225806451612903
21 / 63 = 0.3333333333333333
22 / 64 = 0.34375
…
…
…
…
Similarly,
41 / 83 = 0.4939759036144578
42 / 84 = 0.5
So, after 60th match 24 more matches has to be played and won to get 50% average winning rate.
30
I am working institute
Since the total train length passed the tunnel so the distance would be the length of train added to the tunnel legth
D=150+300=450 mt.
speed = distance/time
speed = 450/(40.5/3600)
speed =40,000 mt/sec
Assume there are 52 weeks in one year.
Since he supposed to have a new order for every two weeks, he
needs 52/2 = 26 orders to break the office record.
Now after 28 weeks,he has got only 28/2 -6 = 8 orders.
Hence,he needs 26-8 = 18 new orders in the remaining 24= 52-28 weeks to break the office record.
Compute 24 orders/18 weeks = 4/3 orders/week ,
we see that averagely he has a new order for
every 4/3 weeks in the remaining weeks to break the office record.
22
we consider a round shape cake.then cut in 2 equal parts in cut into center and next you have to cut its side by center then you have to get 8 equal parts in 3 exact cut
Son in law
6620
72
c-> structured oriented lang
Pascal-> Procedure oriented lang