Chef loves circular cakes

Assignment Help Mathematics
Reference no: EM13158487

Chef loves circular cakes. He divides them into smaller 

pieces and sells them. You are to help him in this work. 

Today Chef has cooked the brand new circular cake.

To split the cake Chef can make several (possibly, zero) cuts. 

Each cut should be a straight line going from the center of the cake 

to its border. 

Also, the angle between any two cuts should have positive integer value 

(Chef measure all the angles in degrees). 

Chef consider two pieces of cake equal if the appropriate angles are equal.

1202_Chef loves circular cakes.jpg

 

 

The picture contains two distinct pieces, and two cuts. Red part on the image shows one piece. The appropriate angle is AOB.

Chef gives to you an integer N, denoting the number of pieces Chef wants to make. You need to answer the following questions:

  • Is it possible to make exactly N equal pieces from the whole cake?
  • Is it possible to make exactly N pieces from the whole cake?
  • Is it possible to make exactly N pieces from the whole cake, in such a way that no two of them are equal?

Input

irst line contains a single integer T denoting the number of test cases. Each of the following T lines contain a single integer N denoting the number of pieces Chef wants to make.

Output

For each test case, output one line containing 3 space separated characters.
Above, we defined the 3 questions that Chef will ask. Output 'y' for yes or 'n' for no (quotes for clarity) for each of those questions.
Answers for 3 questions (in the order above) must be space separated on the same line.

Constraints

  • 1 ? T ? 10000
  • 1 ? N ? 10000

Example

Input:
2
4
7

Output:
y y y
n y y

Reference no: EM13158487

Questions Cloud

Acrylic acid soluble as acetic acid in water : A trayed column is used to recover acrylic acid and acetic acid from a dilute gas stream by absorption in water. At the same vapor concentration, acrylic acid is about two times as soluble as acetic acid in water
What was the mass % of d2o in the original sample of water : A 1.00 g sample of enriched water, a mixture of H2O and D2O, reacted completely with Cl2 to give a mixture of HCl and DCl. The HCl and DCl were then dissolved in pure H2O to make a 1.00 L solution
What are the drawbacks of your changes? : Describe what changes could be made to an operating to break the conditions of non-preemption and hold and wait for deadlock prevention. What are the drawbacks of your changes?
Explain is n methyl propanamine a primary amine : Is 2-methyl-2-propanamine (C4H11N) a primary amine, secondary amine, tertiary amine, or quaternary ammonium salt? 2) Is N-methyl-2-propanamine a primary amine
Chef loves circular cakes : Chef loves circular cakes. He divides them into smaller pieces and sells them. You are to help him in this work. Today Chef has cooked the brand new circular cake
Potential for misuse or embarrassment : Using the data classification scheme presented in this chapter, identify and classify the information contained in your personal computer or personal digital assistant. Based on the potential for misuse or embarrassment, what information would be ..
Programming in mpi : What advantages are gained by programming in MPI as opposed to using threads? Is there a disadvantage to MPI? What?
Long measures of performance : Your company has jobs that are highly interelated and strategic in focus. You want to provide a pay for performance incentive with relatively long measures of performance. The best option would be to design a:
Carrying value of bonds-effective interest amortization : A company issues $20,000,000, 7.8%, 20-year bonds to yield 8% on January 1, 2010. Interest is paid on June 30 and December 31. The proceeds from the bonds are $19,604,145. Using effective-interest amortization, what will the carrying value of the ..

Reviews

Write a Review

Mathematics Questions & Answers

  Determining cylindrical coordinates

What are the cylindrical coordinates of the point whose rectangular coordinates are x = - 4 , y= 2, and z = 4?

  R-charts and decide in-control process

Small boxes of NutraFlakes cereal arelabeled "net weight 10 ounces." Each hour ,random samples of size n=4 boxes are weighed to check process control. five hours of observations yielded the following:

  Chain rule of differentiation

Find the derivative of the given function by using chain rule of differentiation.

  Question on extrema of function

Find two numbers whose product is 192 and the sum of the first plus three times the second is a minimum. (there should be a primary and a secondary equation)

  Graph the given function and label the vertex

Graph the given function and label the vertex - Complete the square to write each function as a transformation.

  Multiple choice questions on regression

Multiple choice questions on regression.

  Application of matrices in real word problems

Application of matrices in real word problems -Five neighborhoods ( NB ) all want to raise money for a playground for their kids.

  Explain clarification of mathematics

How many different 6-letter code words can be formed from the first 8 letters of the alphabet if adjacent letters must be different?

  Information about vector subspaces

Suppose that V and W are vector subspaces of Rn. If I define: How can I prove that V+W is also a vector subspace of Rn and ALSO how could verify that (for example)

  Find mass and center of mass

Find the mass and center of masss of the solid S bounded by the paraboloid z= 4x^2 + 4y^2 and the plane z= a (a is greater than 0) if S has constant density K.

  Find pizza preference probability problem

Pizza Preference Probability Problem, Short Answer. Of 23 college sophomores at Crocodile Community College, 12 preferred pepperoni pizza, 7 preferred supreme, and 4 preferred cheese

  Points and graph linear equation

Given the linear equation, find the y-coordinates of the points (-9, ), (0, ), and (9, ). Please show all of your work. Plot those points and graph the linear equation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd