Give the most compact theta notation for the number of times the statement
x = x + 1 is executed in the following pseudo-code:
for i = 1 to i = 3n − 1{
for j = 1 to j = n{
x = x + 1
}
}
abdullah has decided to make loot bags for his birthday party. Balloons are sold in bags of 20 party horns are sold in bags of 10 and candy bars are sold in packages of 8.He invited his 36 classmates. How many of each should he buy so there are an equal number of balloons horns and candy bars in each basket? he does not want any leftovers
in a card game with my friend, I pay a certain amount of money each time I lose. i win $4 if I draw a jack or a queen and I win $5 if I draw a king or ace for an ordinary pack of 52 playing cards. if I draw other cards I lose. what should I pay so that we come out even? (that is if the game is fair).