input
stringlengths 5
9.74k
| output_program
stringlengths 15
908
| output_answer
stringlengths 1
1.34k
| split
stringclasses 2
values | dataset
stringclasses 10
values |
|---|---|---|---|---|
we bought 85 hats at the store . blue hats cost $ 6 and green hats cost $ 7 . the total price was $ 530 . how many green hats did we buy ?
|
n0 = 85.0
n1 = 6.0
n2 = 7.0
n3 = 530.0
t0 = n0 * n1
answer = n3 - t0
print(answer)
|
20
|
train
|
mathqa_general.json
|
a batsman in his 12 th innings makes a score of 92 and thereby increases his average by 2 runs . what is his average after the 12 th innings if he had never been ‘ not out ’ ?
|
n0 = 12.0
n1 = 92.0
n2 = 2.0
n3 = 12.0
t0 = n0 * n2
t1 = n1 - t0
answer = n2 + t1
print(answer)
|
70
|
train
|
mathqa_general.json
|
if a 10 percent deposit that has been paid toward the purchase of a certain product is $ 80 , how much more remains to be paid ?
|
n0 = 10.0
n1 = 80.0
t0 = 100.0 / n0
t1 = n1 * t0
answer = t1 - n1
print(answer)
|
720
|
train
|
mathqa_general.json
|
a wildlife preserve is being planned for 8000 rhinoceroses . the preserve is to contain a total of 10000 acres of watering area , plus 100 acres of grazing area for each rhinoceros . if the number of rhinoceroses is expected to increase by 10 percent , how many 1000 acres should the preserve have in order to provide for the increased population ?
|
n0 = 8000.0
n1 = 10000.0
n2 = 100.0
n3 = 10.0
n4 = 1000.0
t0 = n0 * n2
t1 = t0 / n3
t2 = t1 + t0
t3 = n1 + t2
answer = t3 / n4
print(answer)
|
890
|
train
|
mathqa_general.json
|
in a market , a dozen eggs cost as much as a pound of rice , and a half - liter of kerosene costs as much as 8 eggs . if the cost of each pound of rice is $ 0.36 , then how many cents does a liter of kerosene cost ? [ one dollar has 100 cents . ]
|
n0 = 8.0
n1 = 0.36
n2 = 100.0
t0 = 1.0 / 2.0
t1 = n1 * n2
t2 = n0 / t0
t3 = t2 / 12.0
answer = t3 * t1
print(answer)
|
48
|
train
|
mathqa_general.json
|
two heavily loaded sixteen - wheeler transport trucks are 855 kilometers apart , sitting at two rest stops on opposite sides of the same highway . driver a begins heading down the highway driving at an average speed of 90 kilometers per hour . exactly one hour later , driver b starts down the highway toward driver a , maintaining an average speed of 80 kilometers per hour . how many kilometers farther than driver b , will driver a have driven when they meet and pass each other on the highway ?
|
n0 = 855.0
n1 = 90.0
n2 = 80.0
t0 = n1 + n2
t1 = n0 - n1
t2 = n1 - n2
t3 = t1 / t0
t4 = t3 * t2
answer = n1 + t4
print(answer)
|
135
|
train
|
mathqa_general.json
|
a number is 4 less than 6 times the other number . if the sum of both the number is 38 , what are the numbers ?
|
n0 = 4.0
n1 = 6.0
n2 = 38.0
t0 = n2 - n1
t1 = n2 - t0
t2 = t1 * 100.0
answer = t2 + t0
print(answer)
|
632
|
train
|
mathqa_general.json
|
the average age of 8 men increases by 2 years when two women are included in place of two men of ages 20 and 10 years . find the average age of the women ?
|
n0 = 8.0
n1 = 2.0
n2 = 20.0
n3 = 10.0
t0 = n2 + n3
t1 = n0 * n1
t2 = t0 + t1
answer = t2 / 2.0
print(answer)
|
23
|
train
|
mathqa_general.json
|
the ratio 6 : 5 expressed as a percent equals
|
n0 = 6.0
n1 = 5.0
t0 = n0 / n1
answer = t0 * 100.0
print(answer)
|
120
|
train
|
mathqa_general.json
|
the total age of a and b is 11 years more than the total age of b and c . c is how many year younger than a
|
n0 = 11.0
answer = n0 * 1.0
print(answer)
|
11
|
train
|
mathqa_general.json
|
if w , x , y and z are distinct odd positive integers , then the maximum value of the expression ( w ^ 2 + x ^ 2 ) * ( y ^ 2 + z ^ 2 ) can be divisible by ?
|
n0 = 2.0
n1 = 2.0
n2 = 2.0
n3 = 2.0
t0 = n0 + n0
t1 = n0 * n0
t2 = n0 * t0
answer = t2 / t1
print(answer)
|
2
|
train
|
mathqa_general.json
|
if a : b = 4 : 1 , then find ( a - 3 b ) / ( 2 a - b ) ?
|
n0 = 4.0
n1 = 1.0
n2 = 3.0
n3 = 2.0
t0 = n0 * n3
t1 = n0 - n2
t2 = t0 - n1
answer = t1 / t2
print(answer)
|
0.14285714285714285
|
train
|
mathqa_general.json
|
a man can row 3.9 km / hr in still water . it takes him twice as long to row upstream as to row downstream . what is the rate of the current ?
|
n0 = 3.9
t0 = n0 * 2.0
t1 = t0 - n0
answer = t1 / 3.0
print(answer)
|
1.3
|
train
|
mathqa_general.json
|
a man goes into a barbershop and gets a $ 15 haircut . he pays the barber with a $ 20 bill , but the barber does n ' t have change because it is an especially slow day . the barber goes to the flower shop next to his own and trades the $ 20 bill for a $ 10 dollar bill and two $ 5 bills . then he gives the man his $ 5 in change . later the lady from the flower shop confronts the barber and tells him that the $ 20 bill he gave her was counterfeit . the barber agrees and he gives the lady a different $ 20 bill . later that day he tries to figure out how much money he lost . what did he lose ?
|
n0 = 15.0
n1 = 20.0
n2 = 20.0
n3 = 10.0
n4 = 5.0
n5 = 5.0
n6 = 20.0
n7 = 20.0
answer = n1 - n0
print(answer)
|
5
|
train
|
mathqa_general.json
|
if ( a - b - c + d = 13 ) and ( a + b - c - d = 9 ) , what is the value of ( b - d ) ^ 2 ?
|
n0 = 13.0
n1 = 9.0
n2 = 2.0
t0 = n0 + n1
t1 = t0 / n2
t2 = n1 - t1
answer = t2**min(n2, 5)
print(answer)
|
4
|
train
|
mathqa_general.json
|
after spending rs . 5000 on rent , rs . 1500 on milk , rs . 4500 on groceries , rs . 2500 on childrens education rs . 2000 on petrol and rs . 3940 on miscellaneous expenses , mr . kishore saved 10 % of his monthly salary . how much did he save in rs . ?
|
n0 = 5000.0
n1 = 1500.0
n2 = 4500.0
n3 = 2500.0
n4 = 2000.0
n5 = 3940.0
n6 = 10.0
t0 = n0 + n1
t1 = 100.0 - n6
t2 = n2 + t0
t3 = n3 + t2
t4 = n4 + t3
t5 = n5 + t4
t6 = t5 * 100.0
t7 = t6 / t1
answer = t7 - t5
print(answer)
|
2160
|
train
|
mathqa_general.json
|
set a contains all the even numbers between 12 and 60 inclusive . set b contains all the even numbers between 62 and 110 inclusive . what is the difference between the sum of elements of set b and the sum of the elements of set a ?
|
n0 = 12.0
n1 = 60.0
n2 = 62.0
n3 = 110.0
t0 = n1 - n0
t1 = n2 - n0
t2 = t0 / 2.0
t3 = t2 + 1.0
answer = t3 * t1
print(answer)
|
1250
|
train
|
mathqa_general.json
|
a batsman scored 1 runs in his 18 th innings and that makes his average 18 . find his average upto the 17 th innings ?
|
n0 = 1.0
n1 = 18.0
n2 = 18.0
n3 = 17.0
t0 = n1 * n1
t1 = t0 - n0
answer = t1 / n3
print(answer)
|
19
|
train
|
mathqa_general.json
|
the average ( arithmetic mean ) of 4 different integers is 70 . if the largest integer is 90 , what is the least possible value of the smallest integer ?
|
n0 = 4.0
n1 = 70.0
n2 = 90.0
t0 = n0 * n1
t1 = n2 - 1.0
t2 = n2 - 2.0
t3 = t0 - n2
t4 = t3 - t1
answer = t4 - t2
print(answer)
|
13
|
train
|
mathqa_general.json
|
a batsman makes a score of 87 runs in the 17 th inning and thus increases his averages by 3 . find his average after 17 th inning ?
|
n0 = 87.0
n1 = 17.0
n2 = 3.0
n3 = 17.0
t0 = n1 * n2
t1 = n0 - t0
answer = n2 + t1
print(answer)
|
39
|
train
|
mathqa_general.json
|
the toll t , in dollars , for a truck using a certain bridge is given by the formula t = 3.50 + 0.50 ( x − 2 ) , where x is the number of axles on the truck . what is the toll for an 18 - wheel truck that has 2 wheels on its front axle and 4 wheels on each of its other axles ?
|
n0 = 3.5
n1 = 0.5
n2 = 2.0
n3 = 18.0
n4 = 2.0
n5 = 4.0
t0 = n3 - n2
t1 = t0 / n5
t2 = t1 + 1.0
t3 = t2 - n2
t4 = n1 * t3
answer = n0 + t4
print(answer)
|
5
|
train
|
mathqa_general.json
|
what is the decimal equivalent of ( 1 / 9 ) ^ 2 ?
|
n0 = 1.0
n1 = 9.0
n2 = 2.0
t0 = n0 / n1
answer = t0**min(n2, 5)
print(answer)
|
0.012345679012345678
|
train
|
mathqa_general.json
|
in the x - y plane , point ( x , y ) is a lattice point if both x and y are integers . a square has a center at ( 0 , 0 ) and side = 4 . some points , such as the center ( 0 , 0 ) , are inside the square , but a point such as ( 0 , 2 ) is on the square but not in the square . how many lattice points are in the square ?
|
n0 = 0.0
n1 = 0.0
n2 = 4.0
n3 = 0.0
n4 = 0.0
n5 = 0.0
n6 = 2.0
t0 = n2 * n6
answer = t0 + 1.0
print(answer)
|
9
|
train
|
mathqa_general.json
|
if 2 x + y = 7 and x + 2 y = 8 , then ( x + y ) / 3 =
|
n0 = 2.0
n1 = 7.0
n2 = 2.0
n3 = 8.0
n4 = 3.0
t0 = n0 * n1
t1 = n0 * n0
t2 = t0 - n3
t3 = t1 - 1.0
t4 = t2 / t3
t5 = n0 * t4
t6 = n1 - t5
t7 = t4 + t6
answer = t7 / n4
print(answer)
|
1.6666666666666667
|
train
|
mathqa_general.json
|
the average weight of 8 person ' s increases by 6 kg when a new person comes in place of one of them weighing 45 kg . what is the weight of the new person ?
|
n0 = 8.0
n1 = 6.0
n2 = 45.0
t0 = n0 * n1
answer = n2 + t0
print(answer)
|
93
|
train
|
mathqa_general.json
|
calculate the largest 4 digit number which is exactly divisible by 98 ?
|
n0 = 4.0
n1 = 98.0
t0 = 100.0 + 2.0
answer = n1 * t0
print(answer)
|
9996
|
train
|
mathqa_general.json
|
a committee is reviewing a total of 20 x black - and - white films and 6 y color films for a festival . if the committee selects y / x % of the black - and - white films and all of the color films , what fraction r of the selected films are in color ?
|
n0 = 20.0
n1 = 6.0
t0 = n0 / 100.0
t1 = n1 + t0
answer = n1 / t1
print(answer)
|
0.9677419354838709
|
train
|
mathqa_general.json
|
total dinning bill of 5 people was $ 139.00 and 10 % tip divided the bill evenly ? what is the bill amount each person shared .
|
n0 = 5.0
n1 = 139.0
n2 = 10.0
t0 = 1.0 / n2
t1 = t0 + 1.0
t2 = n1 * t1
answer = t2 / n0
print(answer)
|
30.580000000000002
|
train
|
mathqa_general.json
|
if x is an integer that has exactly 3 positive divisors ( these include 1 and x ) , how many positive divisors does x ^ 3 have ?
|
n0 = 3.0
n1 = 1.0
n2 = 3.0
t0 = n0 + n0
answer = n1 + t0
print(answer)
|
7
|
train
|
mathqa_general.json
|
if a 2 + b 2 + c 2 = 941 and ab + bc + ca = 10 , then a + b + c is
|
import math
n0 = 2.0
n1 = 2.0
n2 = 2.0
n3 = 941.0
n4 = 10.0
t0 = n4 * n0
t1 = n3 + t0
answer = math.sqrt(max(0, t1))
print(answer)
|
31
|
train
|
mathqa_general.json
|
15 times a number gives 150 . the number is
|
n0 = 15.0
n1 = 150.0
t0 = n1 / n0
answer = n1 / t0
print(answer)
|
15
|
train
|
mathqa_general.json
|
a will was written such that an estate would be divided among 3 guys with the remainder donated to charity . one stipulation in the will is that no one from the guys can receive an amount within 30 % of another ' s amount . if one of the guys received $ 20000 , what is the smallest possible range between the highest and lowest amounts ( rounded to the nearest dollar ) among the 3 guys ?
|
n0 = 3.0
n1 = 30.0
n2 = 20000.0
n3 = 3.0
answer = n2 / 2.0
print(answer)
|
10000
|
train
|
mathqa_general.json
|
a is the hundreds digit of the 3 digit integer x , b is the tens digit of x , and c is the units digit of x . 4 a = 2 b = c , and a > 0 . what is the difference between the two greatest possible values of x ? tip : dont stop till you have exhausted all answer choices to arrive at the correct one .
|
n0 = 3.0
n1 = 4.0
n2 = 2.0
n3 = 0.0
t0 = n0 * n1
t1 = t0 * 10.0
answer = n1 + t1
print(answer)
|
124
|
train
|
mathqa_general.json
|
a man saves 10 % of his monthly salary . if an account of dearness of things he is to increase his monthly expenses by 5 % , he is only able to save rs . 400 per month . what is his monthly salary ?
|
n0 = 10.0
n1 = 5.0
n2 = 400.0
t0 = n1 / 100.0
t1 = n2 * 100.0
t2 = 100.0 - n0
t3 = t0 * t2
t4 = t3 + t2
t5 = 100.0 - t4
answer = t1 / t5
print(answer)
|
7272.727272727273
|
train
|
mathqa_general.json
|
in digging a pond 28 m * 10 m * 5 m the volumes of the soil extracted will be ?
|
n0 = 28.0
n1 = 10.0
n2 = 5.0
t0 = n0 * n1
answer = n2 * t0
print(answer)
|
1400
|
train
|
mathqa_general.json
|
in a group of pigs and hens , the number of legs are 22 more than twice the number of heads . the number of pigs is
|
n0 = 22.0
answer = n0 / 2.0
print(answer)
|
11
|
train
|
mathqa_general.json
|
a fruit drink is made of orange , watermelon , and grape juice , where 25 percent of the drink is orange juice and 40 percent is watermelon juice . if the drink is made with 105 ounces of grape juice , how many ounces is the drink total ?
|
n0 = 25.0
n1 = 40.0
n2 = 105.0
t0 = n0 + n1
t1 = n0 * n2
t2 = n1 * n2
t3 = 100.0 - t0
t4 = t1 / t3
t5 = t2 / t3
t6 = n2 + t4
answer = t6 + t5
print(answer)
|
300
|
train
|
mathqa_general.json
|
if f ( f ( n ) ) + f ( n ) = 2 n + 3 , f ( 0 ) = 1 then f ( 2015 ) = ?
|
n0 = 2.0
n1 = 3.0
n2 = 0.0
n3 = 1.0
n4 = 2015.0
answer = n3 + n4
print(answer)
|
2016
|
train
|
mathqa_general.json
|
if 3 < x < 6 < y < 10 , then what is the greatest possible positive integer difference of x and y ?
|
n0 = 3.0
n1 = 6.0
n2 = 10.0
t0 = n2 - n0
answer = t0 - 1.0
print(answer)
|
6
|
train
|
mathqa_general.json
|
a meal cost $ 35.50 adn there was no tax . if the tip was more than 2 pc but less than 12 pc of the price , then the total amount paid should be :
|
n0 = 35.5
n1 = 2.0
n2 = 12.0
t0 = n0 * n1
t1 = t0 / 100.0
answer = n0 + t1
print(answer)
|
36.21
|
train
|
mathqa_general.json
|
the average of 10 numbers is 40.2 . later it is found that two numbers have been wrongly copied . the first is 16 greater than the actual number and the second number added is 13 instead of 31 . find the correct average .
|
n0 = 10.0
n1 = 40.2
n2 = 16.0
n3 = 13.0
n4 = 31.0
t0 = n2 + n3
t1 = n0 * n1
t2 = t0 + t1
t3 = t2 - n4
answer = t3 / n0
print(answer)
|
40
|
train
|
mathqa_general.json
|
if ( 2 to the x ) - ( 2 to the ( x - 2 ) ) = 3 ( 2 to the 11 ) , what is the value of x ?
|
n0 = 2.0
n1 = 2.0
n2 = 2.0
n3 = 3.0
n4 = 2.0
n5 = 11.0
answer = n0 + n5
print(answer)
|
13
|
train
|
mathqa_general.json
|
a bucket contains 2 mixtures a and b in the ratio 3 : 2 . if 5 liters of the mixture is replaced by 5 liters of liquid b , then the ratio of the two liquids becomes 3 : 5 . how much of the liquid a was there in the bucket ?
|
n0 = 2.0
n1 = 3.0
n2 = 2.0
n3 = 5.0
n4 = 5.0
n5 = 3.0
n6 = 5.0
t0 = n1 + n2
t1 = n1 * n3
t2 = n1 * n2
t3 = n1 / t0
t4 = n2 / t0
t5 = t1 - t2
t6 = n3 * t3
t7 = n3 * t4
t8 = n3 * t6
t9 = n3 - t7
t10 = n1 * t9
t11 = t8 + t10
t12 = t11 / t5
answer = n1 * t12
print(answer)
|
8
|
train
|
mathqa_general.json
|
what is the dividend . divisor 14 , the quotient is 12 and the remainder is 8
|
n0 = 14.0
n1 = 12.0
n2 = 8.0
t0 = n0 * n1
answer = n2 + t0
print(answer)
|
176
|
train
|
mathqa_general.json
|
a number is doubled and 9 is added . if resultant is trebled , it becomes 57 . what is that number
|
n0 = 9.0
n1 = 57.0
t0 = n0 * 3.0
t1 = 2.0 * 3.0
t2 = n1 - t0
answer = t2 / t1
print(answer)
|
5
|
train
|
mathqa_general.json
|
if k is a non - negative integer and 15 ^ k is a divisor of 823,435 then 5 ^ k - k ^ 5 =
|
n0 = 15.0
n1 = 823435.0
n2 = 5.0
n3 = 5.0
t0 = 1.0 - 1.0
t1 = n2**min(t0, 5)
t2 = t0**min(n2, 5)
answer = t1 - t2
print(answer)
|
1
|
train
|
mathqa_general.json
|
if the arithmetic mean of p and q is 10 and the arithmetic mean of q and r is 20 , what is the value of r - p ?
|
n0 = 10.0
n1 = 20.0
t0 = n1 * 2.0
t1 = n0 * 2.0
answer = t0 - t1
print(answer)
|
20
|
train
|
mathqa_general.json
|
a farmer has an apple orchard consisting of fuji and gala apple trees . due to high winds this year 10 % of his trees cross pollinated . the number of his trees that are pure fuji plus the cross - pollinated ones totals 204 , while 3 / 4 of all his trees are pure fuji . how many of his trees are pure gala ?
|
n0 = 10.0
n1 = 204.0
n2 = 3.0
n3 = 4.0
t0 = n0 / 100.0
t1 = n2 / n3
t2 = t0 + t1
t3 = n1 / t2
answer = t3 - n1
print(answer)
|
36
|
train
|
mathqa_general.json
|
an italian sausage is 8 inches long . how many pieces of sausage can be cut from the 8 - inch piece of sausage if each piece is to be 2 / 3 of an inch ?
|
n0 = 8.0
n1 = 8.0
n2 = 2.0
n3 = 3.0
t0 = n2 / n3
answer = n0 / t0
print(answer)
|
12
|
train
|
mathqa_general.json
|
the total age of a and b is 15 years more than the total age of b and c . c is how many years younger than a ?
|
n0 = 15.0
answer = n0 * 1.0
print(answer)
|
15
|
train
|
mathqa_general.json
|
in a fuel station the service costs $ 2.30 per vehicle and every liter of fuel costs $ 0.70 . assuming that you fill up 4 mini - vans and 2 trucks , what will be the total cost , if a mini - van ' s tank is 65 liters and a truck ' s tank is 120 % bigger and they are all empty ?
|
n0 = 2.3
n1 = 0.7
n2 = 4.0
n3 = 2.0
n4 = 65.0
n5 = 120.0
t0 = n2 + n3
t1 = n4 * n5
t2 = n2 * n4
t3 = t1 / 100.0
t4 = n1 * t2
t5 = n0 * t0
t6 = n4 + t3
t7 = n3 * t6
t8 = n1 * t7
t9 = t8 + t4
answer = t9 + t5
print(answer)
|
396
|
train
|
mathqa_general.json
|
a $ 79.95 lawn chair was sold for $ 59.95 at a special sale . by approximately what percent was the price decreased ?
|
n0 = 79.95
n1 = 59.95
t0 = n0 - n1
t1 = t0 / n0
answer = t1 * 100.0
print(answer)
|
25.01563477173233
|
train
|
mathqa_general.json
|
one - fourth of a number is greater than one - fifth of the number succeeding it by 1 . find the number .
|
n0 = 1.0
t0 = 2.0 / 10.0
t1 = n0 / 4.0
t2 = n0 + t0
t3 = t1 - t0
answer = t2 / t3
print(answer)
|
24.000000000000004
|
train
|
mathqa_general.json
|
approximately how many revolutions will be made by a car tire with a 13 - inch diameter if the car travels 1 ⁄ 2 mile ?
|
n0 = 13.0
n1 = 1.0
n2 = 2.0
t0 = n1 / n2
t1 = n2 * 3.0
t2 = t1 / 10.0
t3 = t1 * 10.0
t4 = t2 + n1
t5 = t3 + 3.0
t6 = t4 / 10.0
t7 = t5 * 10.0
t8 = t6 + 4.0
t9 = t7 + 3.0
t10 = t8 / 10.0
t11 = t9 * 10.0
t12 = t10 + n1
t13 = t11 + 3.0
t14 = t13 + n2
t15 = t12 / 10.0
t16 = t15 + 3.0
t17 = t14 * 10.0
t18 = n0 * t16
t19 = t18 / t17
answer = t0 / t19
print(answer)
|
775.5724667489372
|
train
|
mathqa_general.json
|
if a # b = ab – b + b ^ 2 , then 3 # 7 =
|
n0 = 2.0
n1 = 3.0
n2 = 7.0
t0 = n1 * n2
t1 = n2**min(2.0, 5)
t2 = t0 - n2
answer = t1 + t2
print(answer)
|
63
|
train
|
mathqa_general.json
|
in a class of 40 students , 2 students did not borrow any books from the library , 12 students each borrowed 1 book , 14 students each borrowed 2 books , and the rest borrowed at least 3 books . if the average number of books per student was 2 , what is the maximum number of books any single student could have borrowed ?
|
n0 = 40.0
n1 = 2.0
n2 = 12.0
n3 = 1.0
n4 = 14.0
n5 = 2.0
n6 = 3.0
n7 = 2.0
t0 = n0 * n1
t1 = n2 * n3
t2 = n1 * n4
t3 = t1 + t2
t4 = n4 + t1
t5 = n1 + t4
t6 = n0 - t5
t7 = t6 - n3
t8 = n6 * t7
t9 = t3 + t8
answer = t0 - t9
print(answer)
|
7
|
train
|
mathqa_general.json
|
a boy has rs . 480 in the denominations of one - rupee notes , 5 - rupee notes and 10 - rupee notes . the number of notes of each denomination is equal . what is the total number of notes that he has ?
|
n0 = 480.0
n1 = 5.0
n2 = 10.0
t0 = 4.0 * 4.0
t1 = n0 / t0
answer = t1 * 3.0
print(answer)
|
90
|
train
|
mathqa_general.json
|
if sharon ' s weekly salary increased by 10 percent , she would earn $ 330 per week . if instead , her weekly salary were to increase by 8 percent , how much would she earn per week ?
|
n0 = 10.0
n1 = 330.0
n2 = 8.0
t0 = n0 / 100.0
t1 = n2 / 100.0
t2 = t0 + 1.0
t3 = n1 / t2
t4 = t1 * t3
answer = t3 + t4
print(answer)
|
324
|
train
|
mathqa_general.json
|
if @ is a binary operation defined as the difference between an integer n and the product of n and 5 , then what is the largest positive integer n such that the outcome of the binary operation of n is less than 10 ?
|
import math
n0 = 5.0
n1 = 10.0
t0 = n0 - 1.0
t1 = n1 / t0
answer = math.floor(t1)
print(answer)
|
2
|
train
|
mathqa_general.json
|
the average of 11 numbers is 60 . out of 11 numbers the average of first 6 no . is 58 , and last 6 numbers is 65 then find 6 th number ?
|
n0 = 11.0
n1 = 60.0
n2 = 11.0
n3 = 6.0
n4 = 58.0
n5 = 6.0
n6 = 65.0
n7 = 6.0
t0 = n3 * n4
t1 = n3 * n6
t2 = n0 * n1
t3 = t0 + t1
answer = t3 - t2
print(answer)
|
78
|
train
|
mathqa_general.json
|
in 100 litres mixture milk and water are in the ratio 3 : 2 . after adding how many liters of water its ratio will become 3 : 4
|
n0 = 100.0
n1 = 3.0
n2 = 2.0
n3 = 3.0
n4 = 4.0
t0 = 10.0 + 2.0
t1 = n1 + n2
t2 = n1 + n4
t3 = t0 / 10.0
t4 = n1 / t1
t5 = n1 / t2
t6 = n0 * t4
t7 = t6 / t5
t8 = t7 - n0
answer = t3 * t8
print(answer)
|
48
|
train
|
mathqa_general.json
|
3 math classes : x , y , and z , take an algebra test . the average score in class x is 83 . the average score in class y is 76 . the average score in class z is 85 . the average score of all students in classes x and y together is 79 . the average score of all students in classes y and z together is 81 . what is the average score for all the 3 classes , taken together ?
|
n0 = 3.0
n1 = 83.0
n2 = 76.0
n3 = 85.0
n4 = 79.0
n5 = 81.0
n6 = 3.0
t0 = n5 - n2
t1 = n1 - n4
t2 = n4 - n2
t3 = t1 + t2
t4 = n3 * t0
t5 = n2 * t1
t6 = n1 * t2
t7 = t4 + t5
t8 = t3 + t0
t9 = t7 + t6
answer = t9 / t8
print(answer)
|
81.5
|
train
|
mathqa_general.json
|
when n is divided by 5 the remainder is 3 . what is the remainder when n ^ 2 is divided by 5 ?
|
n0 = 5.0
n1 = 3.0
n2 = 2.0
n3 = 5.0
t0 = n0 + n1
t1 = t0**min(n2, 5)
answer = t1 % n0
print(answer)
|
4
|
train
|
mathqa_general.json
|
a high school has 400 students 1 / 2 attend the arithmetic club , 5 / 8 attend the biology club and 3 / 4 attend the chemistry club . 3 / 8 attend all 3 clubs . if every student attends at least one club how many students attend exactly 2 clubs .
|
n0 = 400.0
n1 = 1.0
n2 = 2.0
n3 = 5.0
n4 = 8.0
n5 = 3.0
n6 = 4.0
n7 = 3.0
n8 = 8.0
n9 = 3.0
n10 = 2.0
t0 = n0 * n1
t1 = n0 * n3
t2 = n0 * n5
t3 = t0 / n2
t4 = t1 / n4
t5 = t2 / n6
t6 = t2 / n4
t7 = t3 + t4
t8 = n2 * t6
t9 = t7 + t5
t10 = t9 - t8
answer = t10 - n0
print(answer)
|
50
|
train
|
mathqa_general.json
|
in a group of 130 people , 90 have an age of more 30 years , and the others have an age of less than 20 years . if a person is selected at random from this group , what is the probability the person ' s age is less than 20 ?
|
n0 = 130.0
n1 = 90.0
n2 = 30.0
n3 = 20.0
n4 = 20.0
t0 = n0 - n1
answer = t0 / n0
print(answer)
|
0.3076923076923077
|
train
|
mathqa_general.json
|
cindy has her eye on a sundress but thinks it is too expensive . it goes on sale for 15 % less than the original price . before cindy can buy the dress , however , the store raises the new price by 25 % . if the dress cost $ 71.4 after it went on sale for 15 % off , what is the difference between the original price and the final price ?
|
n0 = 15.0
n1 = 25.0
n2 = 71.4
n3 = 15.0
t0 = n1 + 100.0
t1 = 100.0 - n0
t2 = t0 / 100.0
t3 = t1 / 100.0
t4 = n2 / t3
t5 = n2 * t2
answer = t5 - t4
print(answer)
|
5.249999999999986
|
train
|
mathqa_general.json
|
how many natural numbers are there between 23 and 100 which are exactly divisible by 6 ?
|
n0 = 23.0
n1 = 100.0
n2 = 6.0
t0 = n0 + 1.0
t1 = n1 - 4.0
t2 = t1 - t0
t3 = t2 / n2
answer = t3 + 1.0
print(answer)
|
13
|
train
|
mathqa_general.json
|
if | x - 25 | = 50 what is the sum of all the values of x .
|
n0 = 25.0
n1 = 50.0
t0 = n0 + n1
t1 = n1 - n0
answer = t0 - t1
print(answer)
|
50
|
train
|
mathqa_general.json
|
a certain company expects quarterly earnings of $ 0.80 per share of stock , half of which will be distributed as dividends to shareholders while the rest will be used for research and development . if earnings are greater than expected , shareholders will receive an additional $ 0.04 per share for each additional $ 0.10 of per share earnings . if quarterly earnings are $ 1.10 per share , what will be the dividend paid to a person who owns 400 shares of the company ' s stock ?
|
n0 = 0.8
n1 = 0.04
n2 = 0.1
n3 = 1.1
n4 = 400.0
t0 = n0 / 2.0
t1 = n3 - n0
t2 = t1 * 10.0
t3 = n1 * t2
t4 = t0 + t3
answer = n4 * t4
print(answer)
|
208
|
train
|
mathqa_general.json
|
a box contains 9 slips that are each labeled with one number : 1 , 3 , 5 , 8 , 13 , 21 , 34 and 55 . two of the slips are drawn at random from the box without replacement . what is the probability that the sum of the numbers on the two slips is equal to one of the numbers left in the box ?
|
n0 = 9.0
n1 = 1.0
n2 = 3.0
n3 = 5.0
n4 = 8.0
n5 = 13.0
n6 = 21.0
n7 = 34.0
n8 = 55.0
t0 = n4 - n2
t1 = n4 - n1
t2 = n4 * t1
t3 = t2 / 2.0
answer = t0 / t3
print(answer)
|
0.17857142857142858
|
train
|
mathqa_general.json
|
the average age of a group of persons going for picnic is 16 years . 12 new persons with an average age of 15 years join the group on the spot due to which their average age becomes 15.5 years . the number of persons initially going for picnic is
|
n0 = 16.0
n1 = 12.0
n2 = 15.0
n3 = 15.5
t0 = n1 * n3
t1 = n1 * n2
t2 = n0 - n3
t3 = t0 - t1
answer = t3 / t2
print(answer)
|
12
|
train
|
mathqa_general.json
|
12 . what is the dividend . divisor 17 , the quotient is 9 and the remainder is 9 .
|
n0 = 12.0
n1 = 17.0
n2 = 9.0
n3 = 9.0
t0 = n1 * n2
answer = n3 + t0
print(answer)
|
162
|
train
|
mathqa_general.json
|
a 100 - litre mixture of milk and water contains 36 litres of milk . ' x ' litres of this mixture is removed and replaced with an equal quantum of water . if the process is repeated once , then the concentration of the milk stands reduced at 16 % . what is the value of x ?
|
import math
n0 = 100.0
n1 = 36.0
n2 = 16.0
t0 = n2 / n1
t1 = math.sqrt(max(0, t0))
t2 = 1.0 - t1
answer = n0 * t2
print(answer)
|
33.333333333333336
|
train
|
mathqa_general.json
|
which number can we add to 722425 to get a number exactly divisible by 456 ?
|
n0 = 722425.0
n1 = 456.0
t0 = n0 % n1
answer = n1 - t0
print(answer)
|
335
|
train
|
mathqa_general.json
|
the total cost of a vacation was divided among 3 people . if the total cost of the vacation had been divided equally among 4 people , the cost per person would have been $ 40 less . what was the total cost cost of the vacation ?
|
n0 = 3.0
n1 = 4.0
n2 = 40.0
t0 = n0 * n1
t1 = n1 - n0
t2 = n2 / t1
answer = t2 * t0
print(answer)
|
480
|
train
|
mathqa_general.json
|
if taxi fares were $ 1.00 for the first 1 / 5 mile and $ 0.45 for each 1 / 5 mile there after , then the taxi fare for a 3 - mile ride was
|
n0 = 1.0
n1 = 1.0
n2 = 5.0
n3 = 0.45
n4 = 1.0
n5 = 5.0
n6 = 3.0
t0 = n1 / n2
t1 = n6 / t0
t2 = t1 - n1
t3 = n3 * t2
answer = n0 + t3
print(answer)
|
7.3
|
train
|
mathqa_general.json
|
a batsman makes a score of 56 runs in the 17 th inning and thus increases his averages by 3 . what is his average after 17 th inning ?
|
n0 = 56.0
n1 = 17.0
n2 = 3.0
n3 = 17.0
t0 = n1 * n2
t1 = n0 - t0
answer = n2 + t1
print(answer)
|
8
|
train
|
mathqa_general.json
|
the distance from the x - axis to point p is half the distance from the y - axis to point p . if the coordinates of p are ( x , - 4 ) , how many units is p from the y - axis ?
|
n0 = 4.0
answer = n0 * 2.0
print(answer)
|
8
|
train
|
mathqa_general.json
|
find the number which when multiplied by 15 is increased by 196
|
n0 = 15.0
n1 = 196.0
t0 = n0 - 1.0
answer = n1 / t0
print(answer)
|
14
|
train
|
mathqa_general.json
|
if 6 x ^ 2 + x - 12 = ( ax + b ) ( cx + d ) , then | a | + | b | + | c | + | d |
|
n0 = 6.0
n1 = 2.0
n2 = 12.0
t0 = n1 + 3.0
t1 = 3.0 + 4.0
answer = t0 + t1
print(answer)
|
12
|
train
|
mathqa_general.json
|
an army ’ s recruitment process included n rounds of selection tasks . for the first a rounds , the rejection percentage was 60 percent per round . for the next b rounds , the rejection percentage was 50 percent per round and for the remaining rounds , the selection percentage was 70 percent per round . if there were 100000 people who applied for the army and 245 were finally selected , what was the value of n ?
|
n0 = 60.0
n1 = 50.0
n2 = 70.0
n3 = 100000.0
n4 = 245.0
t0 = 1.0 + 4.0
t1 = t0 + 2.0
answer = t1 + 2.0
print(answer)
|
9
|
train
|
mathqa_general.json
|
a big container is 30 % full with water . if 9 liters of water is added , the container becomes 3 / 4 full . what is the capacity of the big container ?
|
n0 = 30.0
n1 = 9.0
n2 = 3.0
n3 = 4.0
t0 = n2 / n3
t1 = n0 / 100.0
t2 = t0 - t1
answer = n1 / t2
print(answer)
|
20
|
train
|
mathqa_general.json
|
a library has an average of 570 visitors on sundays and 240 on other days . the average number of visitors per day in a month of 30 days beginning with a sunday is :
|
import math
n0 = 570.0
n1 = 240.0
n2 = 30.0
t0 = 3.0 + 4.0
t1 = n2 / t0
t2 = math.floor(t1)
t3 = t2 + 1.0
t4 = n0 * t3
t5 = n2 - t3
t6 = n1 * t5
t7 = t4 + t6
answer = t7 / n2
print(answer)
|
295
|
train
|
mathqa_general.json
|
if the number 98348 * 0 is exactly divisible by 72 , then the minimum value of * is ?
|
n0 = 98348.0
n1 = 0.0
n2 = 72.0
t0 = n0 * 100.0
t1 = t0 % n2
t2 = n2 - t1
answer = t2 / 10.0
print(answer)
|
4
|
train
|
mathqa_general.json
|
find value for x from below equation ? x + 1 = 4
|
n0 = 1.0
n1 = 4.0
answer = n1 - n0
print(answer)
|
3
|
train
|
mathqa_general.json
|
how many positive integer solutions does the equation 5 x + 10 y = 100 have ?
|
n0 = 5.0
n1 = 10.0
n2 = 100.0
answer = n1 / n0
print(answer)
|
2
|
train
|
mathqa_general.json
|
if a 10 percent deposit that has been paid toward the purchase of a certain product is $ 150 , how much more remains to be paid ?
|
n0 = 10.0
n1 = 150.0
t0 = 100.0 / n0
t1 = n1 * t0
answer = t1 - n1
print(answer)
|
1350
|
train
|
mathqa_general.json
|
pat , kate and mark charged a total of 180 hours to a certain project . if pat charged twice as much time to the project as kate and 1 / 3 as much times as mark , how many more hours did mark charge to the project than kate .
|
n0 = 180.0
n1 = 1.0
n2 = 3.0
t0 = n1 + 2.0
t1 = n2 * 2.0
t2 = t0 + t1
t3 = t1 - n1
t4 = n0 / t2
answer = t4 * t3
print(answer)
|
100
|
train
|
mathqa_general.json
|
if x + y = 8 and y − 3 x = 7 , then what is the value of y - x ?
|
n0 = 8.0
n1 = 3.0
n2 = 7.0
t0 = 1.0 + 3.0
t1 = n0 * n1
t2 = n2 + t1
t3 = t2 / t0
t4 = n0 - t3
answer = t3 - t4
print(answer)
|
7.5
|
train
|
mathqa_general.json
|
on a certain day , orangeade was made by mixing a certain amount of orange juice with an equal amount of water . on the next day , orangeade was made by mixing the same amount of orange juice with twice the amount of water . on both days , all the orangeade that was made was sold . if the revenue from selling the orangeade was the same for both days and if the orangeade was sold at $ 0.60 per glass on the first day , what was the price e per glass on the second day ?
|
n0 = 0.6
t0 = 1.0 + 1.0
t1 = 1.0 + 2.0
t2 = n0 * t0
answer = t2 / t1
print(answer)
|
0.39999999999999997
|
train
|
mathqa_general.json
|
the average age of a group of n people is 15 years old . one more person aged 35 joins the group and the new average is 17 years old . what is the value of n ?
|
n0 = 15.0
n1 = 35.0
n2 = 17.0
t0 = n1 - n2
t1 = n2 - n0
answer = t0 / t1
print(answer)
|
9
|
train
|
mathqa_general.json
|
when toys are grouped into 12 and 18 , always 3 toys remain ungrouped . what is the minimum number of toys to be added so that when they are grouped into 7 , no toys will remain ungrouped ?
|
import scipy
n0 = 12.0
n1 = 18.0
n2 = 3.0
n3 = 7.0
t0 = 2.0 + 4.0
t1 = scipy.lcm(int(n0), int(n1))
t2 = n2 + t1
t3 = n3 * t0
answer = t3 - t2
print(answer)
|
3
|
train
|
mathqa_general.json
|
in goshawk - eurasian nature reserve 30 percent of the birds are hawks , and 40 percent of the non - hawks are paddyfield - warblers . if there are 25 percent as many kingfishers as paddyfield - warblers in the reserve , then what percent of the birds x in the nature reserve are not hawks , paddyfield - warblers , or kingfishers ?
|
n0 = 30.0
n1 = 40.0
n2 = 25.0
t0 = n2 + n2
t1 = t0 / 2.0
answer = t1 + 10.0
print(answer)
|
35
|
train
|
mathqa_general.json
|
if 80 percent of 600 is 50 percent of x , then x = ?
|
n0 = 80.0
n1 = 600.0
n2 = 50.0
t0 = n0 * n1
answer = t0 / n2
print(answer)
|
960
|
train
|
mathqa_general.json
|
the average weight of a , b and c is 45 kg . if the average weight of a and b be 40 kg and that of b and c be 44 kg , then the weight of b is :
|
n0 = 45.0
n1 = 40.0
n2 = 44.0
t0 = n1 * 2.0
t1 = n2 * 2.0
t2 = n0 * 3.0
t3 = t0 + t1
answer = t3 - t2
print(answer)
|
33
|
train
|
mathqa_general.json
|
rahim bought 65 books for rs . 6500 from one shop and 35 books for rs . 2000 from another . what is the average price he paid per book ?
|
n0 = 65.0
n1 = 6500.0
n2 = 35.0
n3 = 2000.0
t0 = n1 + n3
t1 = n0 + n2
answer = t0 / t1
print(answer)
|
85
|
train
|
mathqa_general.json
|
on charlie ' s cell phone plan , he signed up for 8 gb of data per 4 week period . if he went over the 8 gb per month , it would cost him an extra $ 10.00 per gb . in the first week , he used 2 gb ; in the 2 nd week , he used 3 gb ; in the 3 rd week , he used 5 gb ; and in the 4 th week , he used a whopping 10 gb . how much extra did charlie need to pay on his cell phone bill ?
|
n0 = 8.0
n1 = 4.0
n2 = 8.0
n3 = 10.0
n4 = 2.0
n5 = 2.0
n6 = 3.0
n7 = 3.0
n8 = 5.0
n9 = 4.0
n10 = 10.0
t0 = n4 + n6
t1 = n8 + t0
t2 = n3 + t1
t3 = t2 - n0
answer = n3 * t3
print(answer)
|
120
|
train
|
mathqa_general.json
|
a garden center sells a certain grass seed in 5 - pound bags at $ 13.85 per bag , 10 - pound bags at $ 20.40 per bag , and 25 - pound bags $ 32.25 per bag . if a customer is to buy at least 65 pounds of the grass seed , but no more than 80 pounds , what is the least possible cost of the grass seed that the customer will buy ?
|
n0 = 5.0
n1 = 13.85
n2 = 10.0
n3 = 20.4
n4 = 25.0
n5 = 32.25
n6 = 65.0
n7 = 80.0
t0 = n5 * 2.0
t1 = n3 * 1.0
t2 = n1 * 1.0
t3 = t0 + t1
answer = t3 + t2
print(answer)
|
98.75
|
train
|
mathqa_general.json
|
in a renowned city , the average birth rate is 10 people every two seconds and the death rate is 2 people every two seconds . estimate the size of the population net increase that occurs in one day .
|
n0 = 10.0
n1 = 2.0
t0 = n0 - n1
t1 = t0 * 3600.0
answer = t1 * 12.0
print(answer)
|
345600
|
train
|
mathqa_general.json
|
if a ' s height is 25 % less than that of b , how much percent b ' s height is more than that of a ?
|
n0 = 25.0
t0 = 100.0 - n0
t1 = n0 / t0
answer = t1 * 100.0
print(answer)
|
33.33333333333333
|
train
|
mathqa_general.json
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.