input
stringlengths 5
9.74k
| output_program
stringlengths 15
908
| output_answer
stringlengths 1
1.34k
| split
stringclasses 2
values | dataset
stringclasses 10
values |
---|---|---|---|---|
the sum of two numbers is 30 and their difference is 10 . find their product . | n0 = 30.0
n1 = 10.0
t0 = n0 + n1
t1 = 1.0 + 1.0
t2 = t0 / t1
t3 = t2 - n1
answer = t2 * t3
print(answer) | 200 | train | mathqa_general.json |
the number of the members of a club is more than 20 and less than 50 . when 4 people sit at a table , other people exactly divided to 6 - people groups ( 6 people sit at a table ) or 7 - people groups ( 7 people sit at a table ) . if the members are divided to 8 - people groups , how many people will be left ? | import scipy
n0 = 20.0
n1 = 50.0
n2 = 4.0
n3 = 6.0
n4 = 6.0
n5 = 7.0
n6 = 7.0
n7 = 8.0
t0 = scipy.lcm(int(n3), int(n5))
t1 = n2 + t0
answer = t1 % n7
print(answer) | 6 | train | mathqa_general.json |
if x is 20 percent greater than 52 , then x = | n0 = 20.0
n1 = 52.0
t0 = n0 / 100.0
t1 = n1 * t0
answer = n1 + t1
print(answer) | 62.4 | train | mathqa_general.json |
a student got twice as many sums wrong as he got right . if he attempted 48 sums in all , how many did he solve correctly ? | n0 = 48.0
t0 = 1.0 + 2.0
answer = n0 / t0
print(answer) | 16 | train | mathqa_general.json |
a man whose bowling average is 12.4 , takes 3 wickets for 26 runs and there by decreases his average by 0.4 . the number of wickets taken by him before his last match is ? | import math
n0 = 12.4
n1 = 3.0
n2 = 26.0
n3 = 0.4
t0 = math.floor(n0)
t1 = n1 * t0
t2 = n0 - t0
t3 = t1 - n2
answer = t3 / t2
print(answer) | 24.99999999999998 | train | mathqa_general.json |
95 white and black tiles will be used to form a 10 x 10 square pattern . if there must be at least one black tile in every row and at least one white tile in every column , what is the maximum difference between the number of black and white tiles that can be used ? | n0 = 95.0
n1 = 10.0
n2 = 10.0
answer = n0 - n1
print(answer) | 85 | train | mathqa_general.json |
how many positive integers less than 5,000 are there in which the sum of the digits equals 5 ? | import math
n0 = 5000.0
n1 = 5.0
t0 = n1 + 4.0
t1 = math.factorial(min(15, int(n1)))
t2 = 4.0 - 1.0
t3 = math.factorial(min(15, int(t2)))
t4 = t0 - 1.0
t5 = math.factorial(min(15, int(t4)))
t6 = t1 * t3
answer = t5 / t6
print(answer) | 56 | train | mathqa_general.json |
find large number from below question the difference of two numbers is 1370 . on dividing the larger number by the smaller , we get 6 as quotient and the 15 as remainder | n0 = 1370.0
n1 = 6.0
n2 = 15.0
t0 = n0 - n2
t1 = n1 - 1.0
t2 = t0 / t1
answer = n1 * t2
print(answer) | 1626 | train | mathqa_general.json |
the average age of 15 students of a class is 15 years . out of these , the average age of 7 students is 14 years and that of the other 7 students is 16 years , the age of the 15 th student is | n0 = 15.0
n1 = 15.0
n2 = 7.0
n3 = 14.0
n4 = 7.0
n5 = 16.0
n6 = 15.0
t0 = n0 * n0
t1 = n2 * n3
t2 = n4 * n5
t3 = t1 + t2
answer = t0 - t3
print(answer) | 15 | train | mathqa_general.json |
10 % people of a village in sri lanka died by bombardment , 15 % of the remainder left the village on account of fear . if now the population is reduced to 6514 , how much was it in the beginning ? | import math
n0 = 10.0
n1 = 15.0
n2 = 6514.0
t0 = 100.0 - n0
t1 = 100.0 - n1
t2 = t0 / 100.0
t3 = t1 / 100.0
t4 = t2 * t3
t5 = n2 / t4
answer = math.floor(t5)
print(answer) | 8515 | train | mathqa_general.json |
an amount of money is to be divided between p , q and r in the ratio of 3 : 7 : 12 . if the difference between the shares of p and q is rs . 4400 , what will be the difference between q and r ' s share ? | n0 = 3.0
n1 = 7.0
n2 = 12.0
n3 = 4400.0
t0 = n1 - n0
t1 = n2 - n1
t2 = n3 / t0
answer = t2 * t1
print(answer) | 5500 | train | mathqa_general.json |
a sum of money lent out at s . i . amounts to rs . 710 after 2 years and to rs . 1020 after a further period of 5 years . the sum is ? | n0 = 710.0
n1 = 2.0
n2 = 1020.0
n3 = 5.0
t0 = n2 - n0
t1 = t0 / n3
t2 = n1 * t1
answer = n0 - t2
print(answer) | 586 | train | mathqa_general.json |
y and z are in a relay race . y runs the first leg of the course in 58 seconds . z runs the second leg of the course in 26 seconds . what was the average time they took to run a leg of the course ? | n0 = 58.0
n1 = 26.0
t0 = n0 + n1
answer = t0 / 2.0
print(answer) | 42 | train | mathqa_general.json |
tough and tricky questions : word problems . if bill ' s salary increased by 16 percent , he would earn $ 812 per month . if instead , his salary were to increase by only 10 percent , how much money r would he earn per month ? | n0 = 16.0
n1 = 812.0
n2 = 10.0
t0 = n2 / 100.0
t1 = n0 / 100.0
t2 = t0 + 1.0
t3 = t1 + 1.0
t4 = n1 / t3
answer = t2 * t4
print(answer) | 770.0000000000001 | train | mathqa_general.json |
a man is 22 years older than his son . in two years , his age will be twice the age of his son . what is the present age of his son ? | n0 = 22.0
t0 = 2.0 * 2.0
t1 = 2.0 - 1.0
t2 = t0 - 2.0
t3 = n0 - t2
answer = t3 / t1
print(answer) | 20 | train | mathqa_general.json |
the average temperature for monday , tuesday , wednesday and thursday was 48 degrees and for tuesday , wednesday , thursday and friday was 46 degrees . if the temperature on monday was 44 degrees . find the temperature on friday ? | n0 = 48.0
n1 = 46.0
n2 = 44.0
t0 = n0 * 4.0
t1 = n1 * 4.0
t2 = t0 - t1
answer = n2 - t2
print(answer) | 36 | train | mathqa_general.json |
in a mixture of 45 litres the ratio of milk to water is 4 : 1 . additional 23 litres of water is added to the mixture . find the ratio of milk to water in the resulting mixture . | n0 = 45.0
n1 = 4.0
n2 = 1.0
n3 = 23.0
t0 = n1 + n2
t1 = n0 / t0
t2 = n3 + t1
t3 = n0 - t1
answer = t3 / t2
print(answer) | 1.125 | train | mathqa_general.json |
how many two - digit numbers yield a remainder of 3 when divided by both 4 and 14 ? | n0 = 3.0
n1 = 4.0
n2 = 14.0
t0 = n1 * n2
t1 = n0 + t0
answer = t1 - t0
print(answer) | 3 | train | mathqa_general.json |
rahim bought 42 books for rs . 520 from one shop and 22 books for rs . 248 from another . what is the average price he paid per book ? | n0 = 42.0
n1 = 520.0
n2 = 22.0
n3 = 248.0
t0 = n1 + n3
t1 = n0 + n2
answer = t0 / t1
print(answer) | 12 | train | mathqa_general.json |
the average salary of all the workers in a workshop is rs . 9000 . the average salary of 6 technicians is rs . 12000 and the average salary of the rest is rs . 6000 . the total number of workers in the workshop is ? | n0 = 9000.0
n1 = 6.0
n2 = 12000.0
n3 = 6000.0
t0 = n2 - n0
t1 = n0 - n3
t2 = n1 * t0
t3 = t2 / t1
answer = n1 + t3
print(answer) | 12 | train | mathqa_general.json |
the closest approximation of a ( 69.28 × 0.004 ) / 0.03 is | n0 = 69.28
n1 = 0.004
n2 = 0.03
t0 = n1 / n2
answer = n0 * t0
print(answer) | 9.237333333333334 | train | mathqa_general.json |
what is the sum of two consecutive even numbers , the difference of whose squares is 84 ? | n0 = 84.0
t0 = 2.0 * 2.0
t1 = n0 - t0
t2 = t1 / t0
t3 = t2 + 2.0
answer = t3 + t2
print(answer) | 42 | train | mathqa_general.json |
at a certain food stand , the price of each apple is 40 ¢ and the price of each orange is 60 ¢ . mary selects a total of 10 apples and oranges from the food stand , and the average ( arithmetic mean ) price of the 10 pieces of fruit is 52 ¢ . how many oranges must mary put back so that the average price of the pieces of fruit that she keeps is 44 ¢ ? | n0 = 40.0
n1 = 60.0
n2 = 10.0
n3 = 10.0
n4 = 52.0
n5 = 44.0
t0 = n1 * n2
t1 = n2 * n4
t2 = n2 * n5
t3 = n1 - n0
t4 = n1 - n5
t5 = t0 - t1
t6 = t5 / t3
t7 = n0 * t6
t8 = n2 - t6
t9 = n1 * t8
t10 = t7 + t9
t11 = t10 - t2
answer = t11 / t4
print(answer) | 5 | train | mathqa_general.json |
a & b started a partnership business . a ' s investment was thrice the investment of b and the period of his investment was two times the period of investments of b . if b received rs 7000 as profit , what is their total profit ? | n0 = 7000.0
t0 = 1.0 * 1.0
t1 = 2.0 * 3.0
t2 = t1 + t0
t3 = t0 / t2
answer = n0 / t3
print(answer) | 49000 | train | mathqa_general.json |
if a # b = ab – b + b ^ 2 , then 3 # 6 = | n0 = 2.0
n1 = 3.0
n2 = 6.0
t0 = n1 * n2
t1 = n2**min(n0, 5)
t2 = t0 - n2
answer = t1 + t2
print(answer) | 48 | train | mathqa_general.json |
find the value of 1 / ( 3 + 1 / ( 3 + 1 / ( 3 - 1 / 3 ) ) ) ? | n0 = 1.0
n1 = 3.0
n2 = 1.0
n3 = 3.0
n4 = 1.0
n5 = 3.0
n6 = 1.0
n7 = 3.0
t0 = n0 / n1
t1 = n1 - t0
t2 = n0 / t1
t3 = n1 + t2
t4 = n0 / t3
t5 = n1 + t4
answer = n0 / t5
print(answer) | 0.30337078651685395 | train | mathqa_general.json |
in an election between two candidates a and b , the number of valid votes received by a exceeds those received by b by 15 % of the total number of votes polled . if 20 % of the votes polled were invalid and a total of 9720 votes were polled , then how many valid votes did b get ? | n0 = 15.0
n1 = 20.0
n2 = 9720.0
t0 = n1 / 100.0
t1 = n0 * n2
t2 = t1 / 100.0
t3 = 1.0 - t0
t4 = n2 * t3
t5 = t4 - t2
answer = t5 / 2.0
print(answer) | 3159 | train | mathqa_general.json |
let p be a prime number greater than 2 and let n = 14 p . how many even numbers divide n ? | n0 = 2.0
n1 = 14.0
answer = n0 - 1.0
print(answer) | 1 | 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 15 , and the difference between the total number of strawberries and the total number of blueberries would increase by 87 . each blue box contains how many blueberries ? | n0 = 15.0
n1 = 87.0
t0 = n1 - n0
answer = t0 / 2.0
print(answer) | 36 | train | mathqa_general.json |
for the past n days , the average ( arithmetic mean ) daily production at a company was 40 units . if today ' s production of 90 units raises the average to 45 units per day , what is the value of n ? | n0 = 40.0
n1 = 90.0
n2 = 45.0
t0 = n1 - n0
t1 = n2 - n0
t2 = t0 / t1
answer = t2 - 1.0
print(answer) | 9 | train | mathqa_general.json |
a student is ranked 21 th from right and 11 th from left . how many students are there in totality ? | n0 = 21.0
n1 = 11.0
t0 = n0 + n1
answer = t0 - 1.0
print(answer) | 31 | train | mathqa_general.json |
if k is an integer and 0.00010101 x 10 ^ k is greater than 1000 , what is the least possible value of k ? | import math
n0 = 0.00010101
n1 = 10.0
n2 = 1000.0
t0 = n2 / n0
t1 = math.log(max(1e-5, n1), 2)
t2 = math.log(max(1e-5, t0), 2)
answer = t2 / t1
print(answer) | 6.995635628892249 | train | mathqa_general.json |
the positive integers a and b leave remainders of 2 and 3 , respectively , when divided by 6 . a > b . what is the remainder when a – b is divided by 6 ? | n0 = 2.0
n1 = 3.0
n2 = 6.0
n3 = 6.0
t0 = n0 % n2
t1 = n1 % n2
answer = t0 + t1
print(answer) | 5 | train | mathqa_general.json |
12.1212 + 17.0005 - 9.1103 = ? | n0 = 12.1212
n1 = 17.0005
n2 = 9.1103
t0 = n0 + n1
answer = t0 - n2
print(answer) | 20.011399999999995 | train | mathqa_general.json |
suraj has a certain average of runs for 16 innings . in the 17 th innings he scores 112 runs thereby increasing his average by 6 runs . what is his average after the 17 th innings ? | n0 = 16.0
n1 = 17.0
n2 = 112.0
n3 = 6.0
n4 = 17.0
t0 = n0 * n3
t1 = n1 - n0
t2 = n2 - t0
answer = t2 / t1
print(answer) | 16 | train | mathqa_general.json |
if 183 is divisible by 11 , find the value of the smallest natural no . n ? | n0 = 183.0
n1 = 11.0
t0 = 2.0 * 4.0
t1 = t0 - 3.0
t2 = t1 - 1.0
answer = n1 - t2
print(answer) | 7 | train | mathqa_general.json |
elvin ' s monthly telephone bill is the sum of the charge for the calls he made during the month and a fixed monthly charge for internet service . elvin ' s total telephone bill for january was $ 48 and elvin ' s total telephone bill for february was 90 $ . if elvin ' s charge for the calls he made in february was twice the charge for the calls he made in january , what is elvin ' s fixed monthly charge for internet service ? | n0 = 48.0
n1 = 90.0
t0 = n0 * 2.0
answer = t0 - n1
print(answer) | 6 | train | mathqa_general.json |
the average age of a group of n people is 14 years old . one more person aged 32 joins the group and the new average is 15 years old . what is the value of n ? | n0 = 14.0
n1 = 32.0
n2 = 15.0
t0 = n1 - n2
t1 = n2 - n0
answer = t0 / t1
print(answer) | 17 | train | mathqa_general.json |
the 3 digits of a number add up to 11 . the number is divisible by 5 . the leftmost digit is double the middle digit . what is the product of the 3 digits ? | n0 = 3.0
n1 = 11.0
n2 = 5.0
n3 = 3.0
t0 = n1 - n2
t1 = t0 / n0
t2 = t1 * 2.0
t3 = t1 * t2
answer = n2 * t3
print(answer) | 40 | train | mathqa_general.json |
each of the integers from 1 to 18 is written on the a seperate index card and placed in a box . if the cards are drawn from the box at random without replecement , how many cards must be drawn to ensure that the product of all the integers drawn is even | n0 = 1.0
n1 = 18.0
t0 = n1 / 2.0
answer = n0 + t0
print(answer) | 10 | train | mathqa_general.json |
at a supermarket , john spent 1 / 4 of his money on fresh fruits and vegetables , 1 / 3 on meat products , and 1 / 6 on bakery products . if he spent the remaining $ 6 on candy , how much did john spend at the supermarket ? | n0 = 1.0
n1 = 4.0
n2 = 1.0
n3 = 3.0
n4 = 1.0
n5 = 6.0
n6 = 6.0
t0 = n0 / n5
t1 = n0 / n3
t2 = n0 / n1
t3 = t0 + t1
t4 = t3 + t2
t5 = n0 - t4
answer = n6 / t5
print(answer) | 24 | train | mathqa_general.json |
the mean of 50 observations was 36 . it was found later that an observation 45 was wrongly taken as 23 . the corrected new mean is ? | n0 = 50.0
n1 = 36.0
n2 = 45.0
n3 = 23.0
t0 = n0 * n1
t1 = n0 - 2.0
t2 = t1 - n3
t3 = t0 + t2
answer = t3 / n0
print(answer) | 36.5 | train | mathqa_general.json |
what least number should be subtracted from 1,439 so that the remainder when divided by 5 , 11 , and 13 will leave in each case the same remainder 3 ? | n0 = 1439.0
n1 = 5.0
n2 = 11.0
n3 = 13.0
n4 = 3.0
t0 = n1 * n2
t1 = n3 * t0
t2 = t1 * 2.0
t3 = n4 + t2
answer = n0 - t3
print(answer) | 6 | train | mathqa_general.json |
45 % of major airline companies equip their planes with wireless internet access . 70 % of major airlines offer passengers free on - board snacks . what is the greatest possible percentage of major airline companies that offer both wireless internet and free on - board snacks ? | n0 = 45.0
n1 = 70.0
answer = n0 * 1.0
print(answer) | 45 | train | mathqa_general.json |
a school has 4 section of chemistry in class x having 65 , 35 , 45 and 42 students . the mean marks obtained in chemistry test are 50 , 60 , 55 and 45 respectively for the 4 sections . determine the overall average of marks per student . | n0 = 4.0
n1 = 65.0
n2 = 35.0
n3 = 45.0
n4 = 42.0
n5 = 50.0
n6 = 60.0
n7 = 55.0
n8 = 45.0
n9 = 4.0
t0 = n1 + n2
t1 = n1 * n5
t2 = n2 * n6
t3 = n3 * n7
t4 = n3 * n4
t5 = t1 + t2
t6 = n3 + t0
t7 = t5 + t3
t8 = n4 + t6
t9 = t7 + t4
answer = t9 / t8
print(answer) | 51.95187165775401 | train | mathqa_general.json |
3 * 14 + 3 * 15 + 3 * 18 + 11 = ? | n0 = 3.0
n1 = 14.0
n2 = 3.0
n3 = 15.0
n4 = 3.0
n5 = 18.0
n6 = 11.0
t0 = n0 * n1
t1 = n0 * n3
t2 = n0 * n5
t3 = t0 + t1
t4 = t3 + t2
answer = n6 + t4
print(answer) | 152 | train | mathqa_general.json |
each child has 6 crayons and 12 apples . if there are 12 children , how many crayons are there in total ? | n0 = 6.0
n1 = 12.0
n2 = 12.0
answer = n0 * n2
print(answer) | 72 | train | mathqa_general.json |
a 30 % alcohol mixture is added to a 50 % alcohol mixture to form a 10 litre mixture of 45 % alcohol . how much of the 30 % mixture was used ? | n0 = 30.0
n1 = 50.0
n2 = 10.0
n3 = 45.0
n4 = 30.0
t0 = n1 / 100.0
t1 = n2 * t0
answer = t1 / 2.0
print(answer) | 2.5 | train | mathqa_general.json |
if ( - 3 ) ^ ( 2 x ) = 3 ^ ( 12 - x ) and x is an integer , what is the value of x ? | n0 = 3.0
n1 = 2.0
n2 = 3.0
n3 = 12.0
answer = n3 / n0
print(answer) | 4 | train | mathqa_general.json |
the difference in compound interest earned on a deposit ( compounded annually ) in year 1 and year 2 is $ 40 . had the interest rate been 3 times its present value , the difference w would have been how much ? | n0 = 1.0
n1 = 2.0
n2 = 40.0
n3 = 3.0
t0 = n2 * n3
answer = n3 * t0
print(answer) | 360 | train | mathqa_general.json |
dacid obtained 76 , 65 , 82 , 67 and 85 marks ( out of 100 ) in english , mathematics , physics , chemistry and biology . what are his average marks ? | n0 = 76.0
n1 = 65.0
n2 = 82.0
n3 = 67.0
n4 = 85.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) | 75 | train | mathqa_general.json |
when positive integer n is divided by positive integer j , the remainder is 28 . if n / j = 142.07 , what is value of j ? | n0 = 28.0
n1 = 142.07
t0 = 10.0 * 4.0
t1 = t0 + 2.0
t2 = t1 + 100.0
t3 = n1 - t2
answer = n0 / t3
print(answer) | 400.000000000039 | train | mathqa_general.json |
find the total number of prime factors in the expression ( 4 ) 11 x ( 7 ) 5 x ( 11 ) 2 . | n0 = 4.0
n1 = 11.0
n2 = 7.0
n3 = 5.0
n4 = 11.0
n5 = 2.0
t0 = n1 * n5
t1 = n3 + t0
answer = n5 + t1
print(answer) | 29 | train | mathqa_general.json |
for the symbol , m ” n = n ^ 2 − m for all values of m and n . what is the value of 5 ” 3 ? | n0 = 2.0
n1 = 5.0
n2 = 3.0
t0 = n2**min(n0, 5)
answer = t0 - n1
print(answer) | 4 | train | mathqa_general.json |
there are 200 female managers in a certain company . find the total number of female employees q in the company , if 2 / 5 of all the employees are managers and 2 / 5 of all male employees are managers . | n0 = 200.0
n1 = 2.0
n2 = 5.0
n3 = 2.0
n4 = 5.0
t0 = n1 / n2
answer = n0 / t0
print(answer) | 500 | train | mathqa_general.json |
the average of first 10 even numbers is ? | n0 = 10.0
answer = n0 + 1.0
print(answer) | 11 | train | mathqa_general.json |
if a 2 - b 2 = 11 and a * b = 5 , find a 4 + b 4 . | n0 = 2.0
n1 = 2.0
n2 = 11.0
n3 = 5.0
n4 = 4.0
n5 = 4.0
t0 = n3**min(n0, 5)
t1 = n2**min(n0, 5)
t2 = t0 * n0
answer = t2 + t1
print(answer) | 171 | train | mathqa_general.json |
the product of 4 consecutive even numbers is always divisible by : | import math
n0 = 4.0
t0 = math.factorial(min(15, int(4.0)))
t1 = 2.0**min(n0, 5)
answer = t0 * t1
print(answer) | 384 | train | mathqa_general.json |
brindavan express leave chennai central station every day at 07.50 am and goes to bangalore city railway station . this train is very popular among the travelers . on 25 th july 2012 number of passengers traveling by i class and ii class was in the ratio 1 : 4 . the fare for this travel is in the ratio 3 : 1 . the total fare collected was rs . 224000 / . ( rs . two lakhs 20 4 1000 only ) . what was the fare collected from i class passengers on that day ? | n0 = 7.5
n1 = 25.0
n2 = 2012.0
n3 = 1.0
n4 = 4.0
n5 = 3.0
n6 = 1.0
n7 = 224000.0
n8 = 20.0
n9 = 4.0
n10 = 1000.0
t0 = n4 + n5
t1 = n5 / t0
answer = n7 * t1
print(answer) | 96000 | train | mathqa_general.json |
10 chess players take part in a tournament . every player plays twice with each of his opponents . how many games are to be played ? | n0 = 10.0
t0 = n0 - 1.0
answer = n0 * t0
print(answer) | 90 | train | mathqa_general.json |
the average expenditure of a labourer for 6 months was 70 and he fell into debt . in the next 4 months by reducing his monthly expenses to 60 he not only cleared off his debt but also saved 30 . his monthly income i | n0 = 6.0
n1 = 70.0
n2 = 4.0
n3 = 60.0
n4 = 30.0
t0 = n0 + n2
t1 = n0 * n1
t2 = n2 * n3
t3 = t1 + t2
t4 = n4 + t3
answer = t4 / t0
print(answer) | 69 | train | mathqa_general.json |
it takes 30 days to fill a laboratory dish with bacteria . if the size of the bacteria doubles each day , how long did it take for the bacteria to fill 1 / 32 of the dish ? | import math
n0 = 30.0
n1 = 1.0
n2 = 32.0
t0 = math.log(max(1e-5, n2), 2)
answer = n0 - t0
print(answer) | 25 | train | mathqa_general.json |
if p and t are positive integers such that p > t > 1 , what is the remainder when 92 p × 5 p + t + 11 t × 6 pt is divided by 10 ? | n0 = 1.0
n1 = 92.0
n2 = 5.0
n3 = 11.0
n4 = 6.0
n5 = 10.0
answer = n4 - n2
print(answer) | 1 | train | mathqa_general.json |
if 7 gallons of gasoline are added to a tank that is already filled to 3 / 4 of its capacity , the tank is then filled to 9 / 10 of its capacity . how many gallons does the tank hold ? | n0 = 7.0
n1 = 3.0
n2 = 4.0
n3 = 9.0
n4 = 10.0
t0 = n3 / n4
t1 = n1 / n2
t2 = t0 - t1
t3 = n0 / t2
t4 = t3 * t1
answer = n0 + t4
print(answer) | 41.99999999999999 | train | mathqa_general.json |
the average age of a group of n people is 15 years old . one more person aged 37 joins the group and the new average is 17 years old . what is the value of n ? | n0 = 15.0
n1 = 37.0
n2 = 17.0
t0 = n1 - n2
t1 = n2 - n0
answer = t0 / t1
print(answer) | 10 | train | mathqa_general.json |
find the value of ( √ 1.21 ) / ( √ 0.64 ) + ( √ 1.44 ) / ( √ 0.49 ) is | import math
n0 = 1.21
n1 = 0.64
n2 = 1.44
n3 = 0.49
t0 = math.sqrt(max(0, n0))
t1 = math.sqrt(max(0, n1))
t2 = math.sqrt(max(0, n2))
t3 = math.sqrt(max(0, n3))
t4 = t0 / t1
t5 = t2 / t3
answer = t4 + t5
print(answer) | 3.0892857142857144 | train | mathqa_general.json |
a , b and c play a cricket match . the ratio of the runs scored by them in the match is a : b = 1 : 3 and b : c = 1 : 5 . if the total runs scored by all of them are 95 , the runs scored by c are ? | n0 = 1.0
n1 = 3.0
n2 = 1.0
n3 = 5.0
n4 = 95.0
t0 = n0 / n1
t1 = n3 / n0
t2 = t0 + t1
t3 = t2 + 1.0
t4 = n4 / t3
answer = n3 * t4
print(answer) | 75 | train | mathqa_general.json |
what is the 4 digit number whose second digit is thrice the first digit and 3 rd digit is sum of 1 st and 2 nd and last digit is thrice the second digit . | n0 = 4.0
n1 = 3.0
n2 = 1.0
n3 = 2.0
t0 = 10.0 * 100.0
t1 = n2 * 3.0
t2 = n2 + t1
t3 = t1 * 100.0
t4 = t1 * 3.0
t5 = t0 + t3
t6 = t2 * 10.0
t7 = t5 + t6
answer = t7 + t4
print(answer) | 1349 | train | mathqa_general.json |
an employee whose hourly wage was increased by 25 percent decided to reduce the number of hours worked per week so that the employee ' s total weekly income would remain unchanged . by what percent should the number of hours worked be reduced ? | n0 = 25.0
t0 = n0 + 100.0
t1 = t0 / 100.0
t2 = 100.0 / t1
answer = 100.0 - t2
print(answer) | 20 | train | mathqa_general.json |
the average of first 3 prime numbers greater than 20 is ? | n0 = 3.0
n1 = 20.0
t0 = n1 + 3.0
t1 = t0 + 4.0
t2 = t1 + 2.0
t3 = t0 + t2
t4 = t2 + 2.0
t5 = t3 + t4
answer = t5 / n0
print(answer) | 27.666666666666668 | train | mathqa_general.json |
cost is expressed by the formula tb ^ 4 . if b is doubled , the new cost r is what percent of the original cost ? | n0 = 4.0
t0 = 2.0**min(n0, 5)
answer = t0 * 100.0
print(answer) | 1600 | train | mathqa_general.json |
the average of 10 numbers was calculated as 18 . it is discovered later on that while calculating the average , one number , namely 66 , was incorrectly read as 26 . what is the correct average ? | n0 = 10.0
n1 = 18.0
n2 = 66.0
n3 = 26.0
t0 = n0 * n1
t1 = n2 - n3
t2 = t0 + t1
answer = t2 / n0
print(answer) | 22 | train | mathqa_general.json |
how much time does a train 225 metres long running at 90 km / hr take to pass a pole ? | n0 = 225.0
n1 = 90.0
t0 = n0 / 1000.0
t1 = t0 / n1
answer = t1 * 3600.0
print(answer) | 9 | train | mathqa_general.json |
if a - b = 5 and a 2 + b 2 = 29 , find the value of ab . | n0 = 5.0
n1 = 2.0
n2 = 2.0
n3 = 29.0
t0 = n0**min(n1, 5)
t1 = n3 - t0
answer = t1 / n1
print(answer) | 2 | train | mathqa_general.json |
a lemonade stand sold only small and large cups of lemonade on tuesday . 1 / 5 of the cups sold were small and the rest were large . if the large cups were sold for 7 / 6 as much as the small cups , what fraction of tuesday ' s total revenue was from the sale of large cups ? | n0 = 1.0
n1 = 5.0
n2 = 7.0
n3 = 6.0
t0 = n2 / n3
t1 = n0 / n1
t2 = t1 * 10.0
t3 = t0 * t2
t4 = t2 * t2
t5 = 10.0 - t2
t6 = t3 * t5
t7 = t4 + t6
answer = t6 / t7
print(answer) | 0.8235294117647058 | train | mathqa_general.json |
if a is an integer greater than 2 but less than 11 and b is an integer greater than 11 but less than 21 , what is the range of a / b ? | n0 = 2.0
n1 = 11.0
n2 = 11.0
n3 = 21.0
t0 = n2 + 1.0
t1 = n0 + 1.0
t2 = n1 - 1.0
t3 = n3 - 1.0
t4 = t2 / t0
t5 = t1 / t3
answer = t4 - t5
print(answer) | 0.6833333333333333 | train | mathqa_general.json |
the average age of a group of 10 persons was decreased by 3 years when one person , whose age was 46 years , was replaced by a new person . find the age of the new person ? | n0 = 10.0
n1 = 3.0
n2 = 46.0
t0 = n0 * n1
answer = n2 - t0
print(answer) | 16 | train | mathqa_general.json |
the average age of a class of 25 students is 26 years . the average increased by 1 when the teacher ' s age also included . what is the age of the teacher ? | n0 = 25.0
n1 = 26.0
n2 = 1.0
t0 = n0 + n2
t1 = n1 + n2
t2 = n0 * n1
t3 = t0 * t1
answer = t3 - t2
print(answer) | 52 | train | mathqa_general.json |
10 years ago , the average age of a family of 4 members was 24 years . two children having been born ( with age diference of 2 years ) , the present average age of the family is the same . the present age of the youngest child is : | n0 = 10.0
n1 = 4.0
n2 = 24.0
n3 = 2.0
t0 = n1 + n3
t1 = n1 * n2
t2 = n0 * n1
t3 = t1 + t2
t4 = n2 * t0
t5 = t4 - t3
t6 = t5 - n3
answer = t6 / n3
print(answer) | 3 | train | mathqa_general.json |
8 liters of a 25 percent solution of alcohol in water are mixed with 2 liters of a 12 percent alcohol in water solution . what is the percentage of alcohol in the new solution ? | n0 = 8.0
n1 = 25.0
n2 = 2.0
n3 = 12.0
t0 = n0 + n2
t1 = n1 / 100.0
t2 = n3 / 100.0
t3 = n0 * t1
t4 = t2 * t3
t5 = t3 + t4
t6 = t5 / t0
answer = t6 * 100.0
print(answer) | 22.400000000000002 | train | mathqa_general.json |
10 is added to a certain number , the sum is multiplied by 7 , the product is divided by 5 and 5 is subtracted from the quotient . the remainder left is half of 88 . what is the number ? | n0 = 10.0
n1 = 7.0
n2 = 5.0
n3 = 5.0
n4 = 88.0
t0 = n4 / 2.0
t1 = n2 + t0
t2 = n2 * t1
t3 = t2 / n1
answer = t3 - n0
print(answer) | 25 | train | mathqa_general.json |
xy = 1 then what is ( 4 ^ ( x + y ) ^ 2 ) / ( 4 ^ ( x - y ) ^ 2 ) | n0 = 1.0
n1 = 4.0
n2 = 2.0
n3 = 4.0
n4 = 2.0
t0 = n0 * 4.0
answer = n1**min(t0, 5)
print(answer) | 256 | train | mathqa_general.json |
for every x , the action [ x ] is defined : [ x ] is the greatest integer less than or equal to x . what is the value of [ 6.5 ] x [ 2 / 3 ] + [ 2 ] x 7.2 + [ 8.4 ] - 6.2 ? | n0 = 6.5
n1 = 2.0
n2 = 3.0
n3 = 2.0
n4 = 7.2
n5 = 8.4
n6 = 6.2
t0 = 4.0 / 10.0
t1 = n1 * n4
t2 = n5 - t0
t3 = t1 + t2
answer = t3 - n6
print(answer) | 16.2 | train | mathqa_general.json |
approximately how many revolutions will be made by a car tire with a 15 - inch diameter if the car travels 1 ⁄ 2 mile ? | n0 = 15.0
n1 = 1.0
n2 = 2.0
t0 = n1 / n2
t1 = 2.0 * 3.0
t2 = t1 / 10.0
t3 = t1 * 10.0
t4 = t2 + 1.0
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 + 1.0
t13 = t11 + 3.0
t14 = t13 + 2.0
t15 = t12 / 10.0
t16 = t15 + 3.0
t17 = t14 * 10.0
t18 = n0 * t16
t19 = t18 / t17
answer = t0 / t19
print(answer) | 672.1628045157456 | train | mathqa_general.json |
a jogger running at 9 km / hr along side a railway track is 280 m ahead of the engine of a 120 m long train running at 45 km / hr in the same direction . in how much time will the train pass the jogger ? | n0 = 9.0
n1 = 280.0
n2 = 120.0
n3 = 45.0
t0 = n1 + n2
t1 = 10.0 / 2.0
t2 = n3 - n0
t3 = t2 / 2.0
t4 = t1 / t3
t5 = t4 * t2
answer = t0 / t5
print(answer) | 40 | train | mathqa_general.json |
what is the smallest number which , when increased by 9 , is divisible by 8 , 11 , and 24 ? | import scipy
n0 = 9.0
n1 = 8.0
n2 = 11.0
n3 = 24.0
t0 = scipy.lcm(int(n2), int(n3))
answer = t0 - n0
print(answer) | 255 | 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 21 ? | import math
n0 = 5.0
n1 = 21.0
t0 = n0 - 1.0
t1 = n1 / t0
answer = math.floor(t1)
print(answer) | 5 | train | mathqa_general.json |
if 9 ^ y = 3 ^ 12 , what is y ? | n0 = 9.0
n1 = 3.0
n2 = 12.0
answer = n2 / 2.0
print(answer) | 6 | train | mathqa_general.json |
a certain mixture of nuts consists of 5 parts almonds to 2 parts walnuts , by weight . what is the number of pounds of almonds in 350 pounds of the mixture ? | n0 = 5.0
n1 = 2.0
n2 = 350.0
t0 = n0 + n1
t1 = n0 * n2
answer = t1 / t0
print(answer) | 250 | train | mathqa_general.json |
a man purchased 5 blankets @ rs . 100 each , 5 blankets @ rs . 150 each and two blankets at a certain rate which is now slipped off from his memory . but he remembers that the average price of the blankets was rs . 150 . find the unknown rate of two blankets ? | n0 = 5.0
n1 = 100.0
n2 = 5.0
n3 = 150.0
n4 = 150.0
t0 = n3 * 10.0
t1 = n0 * n1
t2 = n2 * n3
t3 = t1 + t2
answer = t0 - t3
print(answer) | 250 | train | mathqa_general.json |
there are 84 supermarkets in the fgh chain . all of them are either in the us or canada . if there are 10 more fgh supermarkets in the us than in canada , how many fgh supermarkets are there in the us ? | n0 = 84.0
n1 = 10.0
t0 = n0 + n1
answer = t0 / 2.0
print(answer) | 47 | train | mathqa_general.json |
a , b and c have rs . 500 between them , a and c together have rs . 200 and b and c rs . 350 . how much does c have ? | n0 = 500.0
n1 = 200.0
n2 = 350.0
t0 = n1 + n2
answer = t0 - n0
print(answer) | 50 | train | mathqa_general.json |
a jar of 144 marbles is divided equally among a group of marble - players today . if 2 people joined the group in the future , each person would receive 1 marble less . how many people are there in the group today ? | import math
n0 = 144.0
n1 = 2.0
n2 = 1.0
t0 = n0 * n1
t1 = n1**min(n1, 5)
t2 = t0 * 4.0
t3 = t2 + t1
t4 = math.sqrt(max(0, t3))
t5 = t4 - n1
answer = t5 / n1
print(answer) | 16 | train | mathqa_general.json |
what number times ( 1 ⁄ 7 ) ^ 2 will give the value of 7 ^ 3 ? | n0 = 1.0
n1 = 7.0
n2 = 2.0
n3 = 7.0
n4 = 3.0
t0 = n1**min(n2, 5)
t1 = n1**min(n4, 5)
answer = t0 * t1
print(answer) | 16807 | train | mathqa_general.json |
in a function , every person shakes hand with every other person . if there was a total of 28 handshakes in the function , how many persons were present in the function ? | n0 = 28.0
t0 = n0 - 10.0
answer = t0 - 10.0
print(answer) | 8 | train | mathqa_general.json |
right now , al and eliot have bank accounts , and al has more money than eliot . the difference between their two accounts is 1 / 12 of the sum of their two accounts . if al ’ s account were to increase by 10 % and eliot ’ s account were to increase by 20 % , then al would have exactly $ 21 more than eliot in his account . how much money does eliot have in his account right now ? | n0 = 1.0
n1 = 12.0
n2 = 10.0
n3 = 20.0
n4 = 21.0
t0 = n0 + n1
t1 = n3 + 100.0
t2 = n4 * 100.0
t3 = t0 * n2
t4 = t3 - t1
answer = t2 / t4
print(answer) | 210 | train | mathqa_general.json |
in a two - digit , if it is known that its unit ' s digit exceeds its 10 ' s digit by 2 and that the product of the given number and the sum of its digits is equal to 144 , then the number is ? | n0 = 10.0
n1 = 2.0
n2 = 144.0
t0 = n0 * n1
answer = t0 + 4.0
print(answer) | 24 | train | mathqa_general.json |
rahim bought 65 books for rs . 1150 from one shop and 50 books for rs . 920 from another . what is the average price he paid per book ? | n0 = 65.0
n1 = 1150.0
n2 = 50.0
n3 = 920.0
t0 = n1 + n3
t1 = n0 + n2
answer = t0 / t1
print(answer) | 18 | train | mathqa_general.json |
jane started baby - sitting when she was 18 years old . whenever she baby - sat for a child , that child was no more than half her age at the time . jane is currently 34 years old , and she stopped baby - sitting 10 years ago . what is the current age of the oldest person for whom jane could have baby - sat ? | n0 = 18.0
n1 = 34.0
n2 = 10.0
t0 = n0 / 2.0
t1 = n1 - n0
answer = t0 + t1
print(answer) | 25 | train | mathqa_general.json |
1 = 6,2 = 36,3 = 363,4 = 364,5 = 365 , then 36 = ? | n0 = 1.0
n1 = 62.0
n2 = 363.0
n3 = 3634.0
n4 = 3645.0
n5 = 365.0
n6 = 36.0
answer = 3.0 - n0
print(answer) | 2 | train | mathqa_general.json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.