input
stringlengths
5
9.74k
output_program
stringlengths
15
908
output_answer
stringlengths
1
1.34k
split
stringclasses
2 values
dataset
stringclasses
10 values
what least number should be added to 1021 , so that the sum is completely divisible by 25 ?
n0 = 1021.0 n1 = 25.0 t0 = n0 % n1 answer = n1 - t0 print(answer)
4
train
mathqa_general.json
what is the greatest prime factor of ( 11 ! × 10 !   + 10 ! × 9 ! ) / 111 ?
n0 = 11.0 n1 = 10.0 n2 = 10.0 n3 = 9.0 n4 = 111.0 t0 = n0 * n1 t1 = t0 + 1.0 t2 = t1 / n4 t3 = t2 + 3.0 answer = t3 + 3.0 print(answer)
7
train
mathqa_general.json
a tightrope approximately 320 m long is suspended between two poles . during a performance , a break occurs in the line . assume that the line has an equal chance of breaking anywhere along its length . what is the probability that the break happened in the first 50 meters of the rope ?
n0 = 320.0 n1 = 50.0 answer = n1 / n0 print(answer)
0.15625
train
mathqa_general.json
find the principle on a certain sum of money at 8 % per annum for 2 2 / 5 years if the amount being rs . 1120 ?
n0 = 8.0 n1 = 2.0 n2 = 2.0 n3 = 5.0 n4 = 1120.0 t0 = n1 * n3 t1 = n1 + t0 t2 = t1 / n3 t3 = n0 * t2 t4 = t3 / 100.0 t5 = t4 + 1.0 answer = n4 / t5 print(answer)
939.5973154362416
train
mathqa_general.json
in a bus left side are 15 seats available , 3 few seats in right side because in rear exit door . each seat hold 3 people . in addition , there is a seat back can sit 9 people all together . how many people can sit in a bus ?
n0 = 15.0 n1 = 3.0 n2 = 3.0 n3 = 9.0 t0 = n0 - n1 t1 = n0 + t0 t2 = n1 * t1 answer = n3 + t2 print(answer)
90
train
mathqa_general.json
a large box contains 16 small boxes and each small box contains 25 chocolate bars . how many chocolate bars are in the large box ?
n0 = 16.0 n1 = 25.0 answer = n0 * n1 print(answer)
400
train
mathqa_general.json
if f ( x ) = 2 x ^ 2 + y , and f ( 2 ) = 60 , what is the value of f ( 5 ) ?
n0 = 2.0 n1 = 2.0 n2 = 2.0 n3 = 60.0 n4 = 5.0 t0 = n4**min(n0, 5) t1 = n0**min(n0, 5) t2 = n0 * t0 t3 = n0 * t1 t4 = n3 - t3 answer = t2 + t4 print(answer)
102
train
mathqa_general.json
at a certain fruit stand , the price of each apple is 40 cents and the price of each orange is 60 cents . mary selects a total of 15 apples and oranges from the fruit stand , and the average ( arithmetic mean ) price of the 15 pieces of fruit is 48 cents . how many oranges must mary put back so that the average price of the pieces of fruit that she keeps is 45 cents ?
n0 = 40.0 n1 = 60.0 n2 = 15.0 n3 = 15.0 n4 = 48.0 n5 = 45.0 t0 = n2 * n4 t1 = n2 * n5 t2 = n1 - n5 t3 = t0 - t1 answer = t3 / t2 print(answer)
3
train
mathqa_general.json
if f ( x ) = 1 / x and x is a natural number , what can not be the answer for f ( f ( x ) ) ?
n0 = 1.0 t0 = n0 * 1.0 t1 = 2.0 * 4.0 t2 = t1 - n0 answer = t0 / t2 print(answer)
0.14285714285714285
train
mathqa_general.json
every disk in a bag is either blue , yellow or green . the ratio of blue disks to yellow disks to green disks in this bag is 3 : 7 : 8 . if the total number of disks in the bag is 54 , how many more green disks than blue disks are in the bag ?
n0 = 3.0 n1 = 7.0 n2 = 8.0 n3 = 54.0 t0 = n0 + n1 t1 = n2 - n0 t2 = n2 + t0 t3 = n3 / t2 answer = t3 * t1 print(answer)
15
train
mathqa_general.json
jill has 42 gallons of water stored in quart , half - gallon , and one gallon jars . she has equal numbers of each size jar holding the liquid . what is the total number of water filled jars ?
n0 = 42.0 t0 = 1.0 / 2.0 t1 = t0 + 0.25 t2 = t1 + 1.0 t3 = n0 / t2 answer = t3 * 3.0 print(answer)
72
train
mathqa_general.json
two mixers and one t . v . cost rs . 7000 , while two t . v . s and a mixer cost rs , 9800 . the value of one t . v . is :
n0 = 7000.0 n1 = 9800.0 t0 = n1 * 2.0 t1 = n0 - t0 t2 = t1 / 3.0 answer = -t2 print(answer)
4200
train
mathqa_general.json
if the number is divided by 3 , it reduced by 30 . the number is
n0 = 3.0 n1 = 30.0 t0 = n0 * n1 t1 = n0 - 1.0 answer = t0 / t1 print(answer)
45
train
mathqa_general.json
there are 6 people in the elevator . their average weight is 160 lbs . another person enters the elevator , and increases the average weight to 151 lbs . what is the weight of the 7 th person .
n0 = 6.0 n1 = 160.0 n2 = 151.0 n3 = 7.0 t0 = n2 * n3 t1 = n0 * n1 answer = t0 - t1 print(answer)
97
train
mathqa_general.json
what is the greatest number of identical bouquets that can be made out of 21 white and 91 red tulips if no flowers are to be left out ? ( two bouquets are identical whenever the number of red tulips in the two bouquets is equal and the number of white tulips in the two bouquets is equal )
n0 = 21.0 n1 = 91.0 answer = n0 / 3.0 print(answer)
7
train
mathqa_general.json
find the number of factors of 180 that are in the form ( 4 * k + 2 ) , where k is a non - negative integer ?
n0 = 180.0 n1 = 4.0 n2 = 2.0 t0 = 2.0 + 3.0 t1 = n0 / 3.0 t2 = t1 / n2 answer = t2 / t0 print(answer)
6
train
mathqa_general.json
if 25 % of x is 30 less than 15 % of 1500 , then x is ?
n0 = 25.0 n1 = 30.0 n2 = 15.0 n3 = 1500.0 t0 = n2 / 100.0 t1 = n0 / 100.0 t2 = n3 * t0 t3 = t2 - n1 answer = t3 / t1 print(answer)
780
train
mathqa_general.json
think of a number , divide it by 5 and add 6 to it . the result is 65 . what is the number thought of ?
n0 = 5.0 n1 = 6.0 n2 = 65.0 t0 = n2 - n1 answer = n0 * t0 print(answer)
295
train
mathqa_general.json
if rs . 782 be divided into 3 parts , proportional to 1 / 2 : 2 / 3 : 3 / 4 , then the third part is ?
n0 = 782.0 n1 = 3.0 n2 = 1.0 n3 = 2.0 n4 = 2.0 n5 = 3.0 n6 = 3.0 n7 = 4.0 t0 = n3 + 100.0 t1 = 2.0 * 3.0 t2 = n1 + t1 t3 = n3 + t1 t4 = t2 + t3 t5 = t4 + t1 t6 = t1 / t5 t7 = n0 * t6 answer = t0 + t7 print(answer)
306
train
mathqa_general.json
in a certain egg - processing plant , every egg must be inspected , and is either accepted for processing or rejected . for every 96 eggs accepted for processing , 4 eggs are rejected . if , on a particular day , 12 additional eggs were accepted , but the overall number of eggs inspected remained the same , the ratio of those accepted to those rejected would be 99 to 1 . how many e eggs does the plant process per day ?
n0 = 96.0 n1 = 4.0 n2 = 12.0 n3 = 99.0 n4 = 1.0 t0 = n3 - n0 t1 = n2 / t0 answer = t1 * 100.0 print(answer)
400
train
mathqa_general.json
cereal a is 10 % sugar by weight , whereas healthier but less delicious cereal b is 2 % sugar by weight . to make a delicious and healthy mixture that is 6 % sugar , what should be the ratio of cereal a to cereal b , by weight ?
n0 = 10.0 n1 = 2.0 n2 = 6.0 t0 = n2 - n1 t1 = n0 - n2 answer = t0 / t1 print(answer)
1
train
mathqa_general.json
dacid obtained 96 , 95 , 82 , 87 and 92 marks ( out of 100 ) in english , mathematics , physics , chemistry and biology . what are his average marks ?
n0 = 96.0 n1 = 95.0 n2 = 82.0 n3 = 87.0 n4 = 92.0 n5 = 100.0 t0 = n0 + n1 t1 = 10.0 / 2.0 t2 = n2 + t0 t3 = n3 + t2 t4 = n4 + t3 answer = t4 / t1 print(answer)
90.4
train
mathqa_general.json
if a certain number when divided by the numbers 5 , 32 one after other successively , leaves a remainder 0 , 21 then what will be the remainders if it is divided by the numbers 2 , 35
n0 = 5.0 n1 = 32.0 n2 = 0.0 n3 = 21.0 n4 = 2.0 n5 = 35.0 t0 = n0 * n3 answer = t0 % n4 print(answer)
1
train
mathqa_general.json
the number of positive integer solutions for the equation x + y + z + t = 15 is
import math n0 = 15.0 t0 = n0 - 1.0 t1 = 4.0 - 1.0 t2 = math.factorial(min(15, int(t0))) t3 = math.factorial(min(15, int(t1))) t4 = t0 - t1 t5 = math.factorial(min(15, int(t4))) t6 = t3 * t5 answer = t2 / t6 print(answer)
364
train
mathqa_general.json
line m lies in the xy - plane . the y - intercept of line m is - 2 , and line m passes through the midpoint of the line segment whose endpoints are ( 2 , 8 ) and ( 6 , - 4 ) . what is the slope of line m ?
n0 = 2.0 n1 = 2.0 n2 = 8.0 n3 = 6.0 n4 = 4.0 t0 = n1 + n3 t1 = n2 - n4 t2 = t1 / n1 t3 = t0 / n1 t4 = t2 + n0 answer = t4 / t3 print(answer)
1
train
mathqa_general.json
a theater charges $ 12 for seats in the orchestra and $ 8 for seats in the balcony . on a certain night , a total of 370 tickets were sold for a total cost of $ 3320 . how many more tickets were sold that night for seats in the balcony than for seats in the orchestra ?
n0 = 12.0 n1 = 8.0 n2 = 370.0 n3 = 3320.0 t0 = n1 * n2 t1 = n0 - n1 t2 = n3 - t0 t3 = t2 / t1 t4 = n2 - t3 answer = t4 - t3 print(answer)
190
train
mathqa_general.json
which number need to add to 7844213 to get a number exactly divisible by 549 ?
import math n0 = 7844213.0 n1 = 549.0 t0 = n0 / n1 t1 = math.floor(t0) t2 = t1 + 1.0 t3 = t2 - t0 answer = n1 * t3 print(answer)
448.0000000000291
train
mathqa_general.json
a computer is programmed to multiply consecutive even integers 2 * 4 * 6 * 8 * … * n until the product is divisible by 1551 , what is the value of n ?
n0 = 2.0 n1 = 4.0 n2 = 6.0 n3 = 8.0 n4 = 1551.0 t0 = 1.0 + 10.0 t1 = n4 / t0 t2 = t1 / 3.0 answer = n0 * t2 print(answer)
94
train
mathqa_general.json
the sum of the present age of henry and jill is 43 . what is their present ages if 5 years ago henry was twice the age of jill ?
n0 = 43.0 n1 = 5.0 t0 = n0 + n1 t1 = t0 / 3.0 answer = n0 - t1 print(answer)
27
train
mathqa_general.json
the ratio of the amount of the oil bill for the month of february to the amount of the oil bill for the month of january was 3 : 2 . if the oil bill for february had been $ 20 more , the corresponding ratio would have been 5 : 3 . how much was the oil bill for january ?
n0 = 3.0 n1 = 2.0 n2 = 20.0 n3 = 5.0 n4 = 3.0 t0 = n3 / n4 t1 = n0 / n1 t2 = t0 - t1 answer = n2 / t2 print(answer)
119.99999999999994
train
mathqa_general.json
the average of 10 numbers is calculated as 16 . it is discovered later on that while calculating the average , the number 35 was incorrectly read as 25 , and this incorrect number was used in the calculation . what is the correct average ?
n0 = 10.0 n1 = 16.0 n2 = 35.0 n3 = 25.0 t0 = n0 * n1 t1 = t0 - n3 t2 = n2 + t1 answer = t2 / n0 print(answer)
17
train
mathqa_general.json
in a certain country 1 / 3 of 4 = 6 . assuming the same proportion , what would be the value of 1 / 6 of 20 ?
n0 = 1.0 n1 = 3.0 n2 = 4.0 n3 = 6.0 n4 = 1.0 n5 = 6.0 n6 = 20.0 t0 = n1 / n2 answer = n6 * t0 print(answer)
15
train
mathqa_general.json
amithab ' s average expenditure for the january to june is rs . 4200 and he spends rs . 1200 in january and rs . 1500 in july . the average expenditure for the months of febraury to july is
n0 = 4200.0 n1 = 1200.0 n2 = 1500.0 t0 = 2.0 * 3.0 t1 = n2 - n1 t2 = t1 / t0 answer = n0 + t2 print(answer)
4250
train
mathqa_general.json
simplify 80 â ˆ ’ [ 5 â ˆ ’ ( 6 + 2 ( 7 â ˆ ’ 8 â ˆ ’ 5 â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ â ¯ ) ) ]
n0 = 80.0 n1 = 5.0 n2 = 6.0 n3 = 2.0 n4 = 7.0 n5 = 8.0 n6 = 5.0 t0 = n2 - n1 t1 = n4 - n3 t2 = n5 - n1 t3 = t0 + t1 t4 = t3 + t2 answer = n0 + t4 print(answer)
89
train
mathqa_general.json
a school has 9 english 7 history and 6 geography teachers each teacher can teach 2 subjects max what is he minimum number of teachers required
n0 = 9.0 n1 = 7.0 n2 = 6.0 n3 = 2.0 t0 = n0 + n1 t1 = n2 + t0 answer = t1 / n3 print(answer)
11
train
mathqa_general.json
eighteen years ago , a father was 3 times as old as his son . now the father is only twice as old his son . then the sum of the present ages of the son and the father is :
n0 = 3.0 t0 = 3.0 + 3.0 t1 = n0 * t0 t2 = n0 * t1 t3 = t2 - t1 t4 = t3 * 2.0 answer = t4 + t3 print(answer)
108
train
mathqa_general.json
if each digit in the set a = { 1 , 2 , 3 , 4 , 5 } is used exactly once , in how many ways can the 5 digits be arranged ?
import math n0 = 1.0 n1 = 2.0 n2 = 3.0 n3 = 4.0 n4 = 5.0 n5 = 5.0 answer = math.factorial(min(15, int(n5))) print(answer)
120
train
mathqa_general.json
165 liters of a mixture of milk and water contains in the ratio 3 : 2 . how much water should now be added so that the ratio of milk and water becomes 3 : 4 ?
n0 = 165.0 n1 = 3.0 n2 = 2.0 n3 = 3.0 n4 = 4.0 t0 = n1 + n2 t1 = n0 / t0 answer = n2 * t1 print(answer)
66
train
mathqa_general.json
if 15 students in a class average 75 % on an exam and 10 students average 95 % on the same exam , what is the average in percent for all 25 students ?
n0 = 15.0 n1 = 75.0 n2 = 10.0 n3 = 95.0 n4 = 25.0 t0 = n0 * n1 t1 = n2 * n3 t2 = t0 + t1 answer = t2 / n4 print(answer)
83
train
mathqa_general.json
a student , after his teacher ' s question , chose a number , multiplied it by 2 , then subtracted 138 from the result and got 102 . what was the number he chose ?
n0 = 2.0 n1 = 138.0 n2 = 102.0 t0 = n1 + n2 answer = t0 / n0 print(answer)
120
train
mathqa_general.json
if √ 10 = 3.16 , find the value of if √ 5 / 2
import math n0 = 10.0 n1 = 3.16 n2 = 5.0 n3 = 2.0 t0 = n2 / n3 answer = math.sqrt(max(0, t0)) print(answer)
1.5811388300841898
train
mathqa_general.json
a large box contains 18 small boxes and each small box contains 28 chocolate bars . how many chocolate bars are in the large box ?
n0 = 18.0 n1 = 28.0 answer = n0 * n1 print(answer)
504
train
mathqa_general.json
in a certain school , 20 % of students are below 8 years of age . the number of students above 8 years of age is 2 / 3 of the number of students of 8 years of age which is 12 . what is the total number of students in the school ?
n0 = 20.0 n1 = 8.0 n2 = 8.0 n3 = 2.0 n4 = 3.0 n5 = 8.0 n6 = 12.0 t0 = n3 / n4 t1 = n0 / 100.0 t2 = n6 * t0 t3 = 1.0 - t1 t4 = n6 + t2 answer = t4 / t3 print(answer)
25
train
mathqa_general.json
x , y , and z are different prime numbers . the product x ^ 2 * y * z is divisible by how many different positive numbers ?
n0 = 2.0 t0 = n0**min(4.0, 5) answer = t0 - 4.0 print(answer)
12
train
mathqa_general.json
a certain sum of money is divided among a , b and c such that a gets one - third of what b and c together get and b gets two - seventh of what a and c together get . if the amount received by a is $ 20 more than that received by b , find the total amount shared by a , b and c .
n0 = 20.0 t0 = n0 * 3.0 t1 = n0 * 2.0 t2 = t0 * 2.0 t3 = t2 + t1 t4 = n0 + t3 t5 = t3 + t4 t6 = t4 * 3.0 t7 = t6 - t3 answer = t5 + t7 print(answer)
720
train
mathqa_general.json
according to the directions on a packet of smoothie mix , 1 3 - ounce packet of smoothie mix is to be combined with 12 ounces of water to make a smoothie . how many 2 - ounce packets of smoothie mix are required to prepare 150 12 - ounce smoothies ?
n0 = 1.0 n1 = 3.0 n2 = 12.0 n3 = 2.0 n4 = 150.0 n5 = 12.0 t0 = n1 * 10.0 answer = n4 + t0 print(answer)
180
train
mathqa_general.json
if the function q is defined by the formula q = 5 e / ( 4 x ( z ^ 2 ) ) , by what factor will q be multiplied if e is quadrupled , x is doubled , and z is tripled ?
n0 = 5.0 n1 = 4.0 n2 = 2.0 t0 = n0 + n1 answer = n2 / t0 print(answer)
0.2222222222222222
train
mathqa_general.json
a man is 24 years older than his son . in two years , his age will be twice the age of his son . the present age of his son is :
n0 = 24.0 t0 = 2.0 * 2.0 t1 = 2.0 - 1.0 t2 = t0 - 2.0 t3 = n0 - t2 answer = t3 / t1 print(answer)
22
train
mathqa_general.json
for how many integer values of n will the value of the expression 4 n + 7 be an integer greater than 1 and less than 40 ?
import math n0 = 4.0 n1 = 7.0 n2 = 1.0 n3 = 40.0 t0 = n3 - n1 t1 = n2 - n1 t2 = t0 / n0 t3 = t1 / n0 t4 = math.floor(t2) t5 = math.floor(t3) answer = t4 - t5 print(answer)
10
train
mathqa_general.json
instead of multiplying a number by 5 , the number is divided by 10 . what is the percentage of error obtained ?
n0 = 5.0 n1 = 10.0 t0 = n1 / n1 t1 = n0 * n1 t2 = t0 / t1 t3 = t2 * 100.0 answer = 100.0 - t3 print(answer)
98
train
mathqa_general.json
average of 10 matches is 32 , how many runs one should should score to increase his average by 6 runs .
n0 = 10.0 n1 = 32.0 n2 = 6.0 t0 = n1 + n2 t1 = n0 + 1.0 t2 = n0 * n1 t3 = t0 * t1 answer = t3 - t2 print(answer)
98
train
mathqa_general.json
if the price of sugar rises from rs . 6 per kg to rs . 7.50 per kg , a person , to have no increase in his expenditure on sugar , will have to reduce his consumption of sugar by
n0 = 6.0 n1 = 7.5 t0 = n0 * 1.0 t1 = t0 / n1 t2 = 1.0 - t1 answer = t2 * 100.0 print(answer)
19.999999999999996
train
mathqa_general.json
at 1 : 00 pm , there were 10.0 grams of bacteria . the bacteria increased to x grams at 4 : 00 pm , and 28.9 grams at 7 : 00 pm . if the amount of bacteria present increased by the same fraction during each of the 3 - hour periods , how many grams of bacteria were present at 4 : 00 pm ?
import math n0 = 1.0 n1 = 0.0 n2 = 10.0 n3 = 4.0 n4 = 0.0 n5 = 28.9 n6 = 7.0 n7 = 0.0 n8 = 3.0 n9 = 4.0 n10 = 0.0 t0 = n5 / n2 t1 = math.sqrt(max(0, t0)) answer = t1 * n2 print(answer)
17
train
mathqa_general.json
the toll t , in dollars , for a truck using a certain bridge is given by the formula t = 2.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 = 2.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)
4
train
mathqa_general.json
at the opening of a trading day at a certain stock exchange , the price per share of stock k was $ 10 . if the price per share of stock k was $ 15 at the closing of the day , what was the percent increase in the price per share of stock k for that day ?
n0 = 10.0 n1 = 15.0 t0 = n1 / n0 t1 = t0 - 1.0 answer = t1 * 100.0 print(answer)
50
train
mathqa_general.json
we have boxes colored either red or blue . in each blue box there is a fixed number of blueberries . in each red box there is a fixed number of strawberries . if we dispose of one blue box for one additional red box , the total number of berries would increase by 12 , and the difference between the total number of strawberries and the total number of blueberries would increase by 76 . each blue box contains how many blueberries ?
n0 = 12.0 n1 = 76.0 t0 = n1 - n0 answer = t0 / 2.0 print(answer)
32
train
mathqa_general.json
how many integers between 1000 and 10000 have no digits other than 4 , 5 or 6 ?
n0 = 1000.0 n1 = 10000.0 n2 = 4.0 n3 = 5.0 n4 = 6.0 t0 = n2 - 1.0 t1 = t0 * t0 answer = t1 * t1 print(answer)
81
train
mathqa_general.json
20 is added to a certain number , the sum is multiplied by 2 , the product is divided by 2 and 2 is subtracted from the quotient . the remainder left is half of 88 . what is the number ?
n0 = 20.0 n1 = 2.0 n2 = 2.0 n3 = 2.0 n4 = 88.0 t0 = n4 / 2.0 t1 = n2 + t0 t2 = n2 * t1 t3 = t2 / n1 answer = t3 - n0 print(answer)
26
train
mathqa_general.json
if a certain toy store ' s revenue in november was 2 / 5 of its revenue in december and its revenue in january was 1 / 2 of its revenue in november , then the store ' s revenue in december was how many times the average ( arithmetic mean ) of its revenues in november and january ?
n0 = 2.0 n1 = 5.0 n2 = 1.0 n3 = 2.0 t0 = n0 / n1 t1 = n2 / n3 t2 = t0 * t1 t3 = t0 + t2 t4 = t3 / 2.0 answer = n2 / t4 print(answer)
3.333333333333333
train
mathqa_general.json
the least number of 4 digits which is divisible by 15 , 25 , 40 and 75 is :
n0 = 4.0 n1 = 15.0 n2 = 25.0 n3 = 40.0 n4 = 75.0 t0 = n0 * 2.0 t1 = n4 * t0 t2 = t1 * t0 answer = t2 * 2.0 print(answer)
9600
train
mathqa_general.json
if r is the product of the integers from 1 to 30 , inclusive , what is the greatest integer k for which 3 ^ k is a factor of r ?
n0 = 1.0 n1 = 30.0 n2 = 3.0 t0 = n1 / 2.0 answer = t0 - n0 print(answer)
14
train
mathqa_general.json
the average of 10 consecutive integers is 16 . then , 9 is deducted from the first consecutive number , 8 is deducted from the second , 7 is deducted form the third , and so on until the last number which remains unchanged . what is the new average ?
n0 = 10.0 n1 = 16.0 n2 = 9.0 n3 = 8.0 n4 = 7.0 t0 = 1.0 + 4.0 t1 = n0 * n1 t2 = n2 * t0 t3 = t1 - t2 answer = t3 / n0 print(answer)
11.5
train
mathqa_general.json
define a = the sum of digits of the number 7 ^ 100 and b = the sum of the digits of a . what is the sum of the digits of b ?
n0 = 7.0 n1 = 100.0 t0 = 2.0 + 4.0 answer = t0 + 1.0 print(answer)
7
train
mathqa_general.json
julian owes his classmate jenny 20 dollars . if he borrows 8 dollars how much will he owe her ?
n0 = 20.0 n1 = 8.0 answer = n0 + n1 print(answer)
28
train
mathqa_general.json
a = { 0 , 1 , - 3 , 6 , - 8 } b = { - 1 , 2 , - 4 , 7 } if a is a number that is randomly selected from set a , and b is a number that is randomly selected from set b , what is the probability that ab > 0 ?
n0 = 0.0 n1 = 1.0 n2 = 3.0 n3 = 6.0 n4 = 8.0 n5 = 1.0 n6 = 2.0 n7 = 4.0 n8 = 7.0 n9 = 0.0 t0 = n1 + n7 t1 = n6 / n7 t2 = n6 / t0 t3 = t2 * t1 answer = t3 + t3 print(answer)
0.4
train
mathqa_general.json
a part - time employee whose hourly wage was decreased by 20 percent decided to increase the number of hours worked per week so that the employee ' s total income did not change . by what percent e should the number of hours worked be increased ?
n0 = 20.0 t0 = 10.0 * 4.0 t1 = 100.0 - n0 t2 = t1 / 100.0 t3 = t2 * 10.0 t4 = t0 / t3 t5 = t4 - 4.0 t6 = t5 / 4.0 answer = t6 * 100.0 print(answer)
25
train
mathqa_general.json
if 204 ÷ 12.75 = 16 , then 2.04 ÷ 1.275 = ?
n0 = 204.0 n1 = 12.75 n2 = 16.0 n3 = 2.04 n4 = 1.275 answer = n3 / n4 print(answer)
1.6
train
mathqa_general.json
the average of non - zero number and its square is 5 times the number . the number is ?
n0 = 5.0 t0 = n0 * 2.0 answer = t0 - 1.0 print(answer)
9
train
mathqa_general.json
a driver just filled the car ' s gas tank with 27 liters of gasohol , a mixture consisting of 5 % ethanol and 95 % gasoline . if the car runs best on a mixture consisting of 10 % ethanol and 90 % gasoline , how many liters of ethanol must be added into the gas tank for the car to achieve optimum performance ?
n0 = 27.0 n1 = 5.0 n2 = 95.0 n3 = 10.0 n4 = 90.0 t0 = n0 * n1 t1 = 100.0 - n3 answer = t0 / t1 print(answer)
1.5
train
mathqa_general.json
how many positive integers , from 2 to 100 , inclusive , are not divisible by odd integers greater than 1 ?
n0 = 2.0 n1 = 100.0 n2 = 1.0 t0 = n0 * n0 t1 = n0 * t0 t2 = n0 * t1 t3 = n0 * t2 t4 = n0 * t3 t5 = t4 - 4.0 answer = t5 / 10.0 print(answer)
6
train
mathqa_general.json
simplify 586645 * 9999
n0 = 586645.0 n1 = 9999.0 answer = n0 * n1 print(answer)
5865863355
train
mathqa_general.json
in how many ways can 5 different rings be worn in 4 particular fingers ? ( some fingers may get more than one ring and some may get no rings . ) can somebody explain ?
n0 = 5.0 n1 = 4.0 t0 = 2.0 + 4.0 t1 = n0 * n1 t2 = t0 + 1.0 t3 = t0 * t1 t4 = t2 + 1.0 t5 = t2 * t3 answer = t4 * t5 print(answer)
6720
train
mathqa_general.json
a student is ranked 13 th from right and 8 th from left . how many are there ?
n0 = 13.0 n1 = 8.0 t0 = n0 + n1 answer = t0 - 1.0 print(answer)
20
train
mathqa_general.json
at joes steakhouse the hourly wage for a chef is 20 % greater than that of a dishwasher , and the hourly wage of a dishwasher is half as much as the hourly wage of a manager . if a managers wage is $ 8.50 per hour , how much less than a manager does a chef earn each hour ?
n0 = 20.0 n1 = 8.5 t0 = n0 + 100.0 t1 = 1.0 / 2.0 t2 = t0 / 100.0 t3 = t2 * t1 t4 = 1.0 - t3 answer = n1 * t4 print(answer)
3.4000000000000004
train
mathqa_general.json
the average of 7 consecutive numbers a , b , c , d , e , f and g is 9 . what percent of g is a ?
import math n0 = 7.0 n1 = 9.0 t0 = n0 / 2.0 t1 = math.floor(t0) t2 = n1 + t1 t3 = n1 - t1 t4 = t2 - t3 t5 = t4 / t2 answer = t5 * 100.0 print(answer)
50
train
mathqa_general.json
the mean proportional between 234 and 104 is
import math n0 = 234.0 n1 = 104.0 t0 = n0 * n1 answer = math.sqrt(max(0, t0)) print(answer)
156
train
mathqa_general.json
a container holds 4 quarts of alcohol and 4 quarts of water . how many quarts of water must be added to the container to create a mixture that is 3 parts alcohol to 5 parts water by volume ?
n0 = 4.0 n1 = 4.0 n2 = 3.0 n3 = 5.0 t0 = n2 / n3 t1 = n0 / t0 answer = t1 - n0 print(answer)
2.666666666666667
train
mathqa_general.json
if the number 761 * 829 is completely divisible by 9 , then the smallest whole number in place of * will b
n0 = 761.0 n1 = 829.0 n2 = 9.0 t0 = 3.0 + 4.0 t1 = 3.0 + 3.0 t2 = 4.0 + 4.0 t3 = t0 + t1 t4 = t3 + 1.0 t5 = t4 + t2 t6 = t5 + 2.0 t7 = n2 + t6 t8 = t7 + 3.0 answer = t8 - t7 print(answer)
3
train
mathqa_general.json
two employees m and n are paid a total of $ 605 per week by their employer . if m is paid 120 percent of the salary paid to n , how much is n paid per week ?
n0 = 605.0 n1 = 120.0 t0 = n1 / 100.0 t1 = t0 + 1.0 answer = n0 / t1 print(answer)
275
train
mathqa_general.json
joan and karl each bought a telescopes and the sum of their purchases was $ 400 . if twice of what joan paid was $ 74 more than what karl paid , what did joan pay for her telescope ?
n0 = 400.0 n1 = 74.0 t0 = n0 * 2.0 t1 = t0 - n1 t2 = t1 / 3.0 answer = n0 - t2 print(answer)
158
train
mathqa_general.json