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

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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