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?


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.


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.


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



y y y
n y y

Reference no: EM13158487

Previous Q& A

  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 ..

  Build a binary search tree

Build a binary search tree using the following set of numbers, preserving the orderin which they are given: 34,26,47,22,28,10,24,38,51,49,37,4,45,60,57,14.

  Unfettered free speech-duties of public employees

Determine the appropriate balance between unfettered free speech and the duties of public employees. Provide specific examples to support your response.

  Total cash received on the issue date

Farmer Company issues $10,000,000 of 10-year, 9% bonds on March 1, 2010 at 97 plus accrued interest. The bonds are dated January 1, 2010, and pay interest on June 30 and December 31. What is the total cash received on the issue date?

  Decision making in today business environment

Write a 350- to 700-word review of the article. Your review should discuss how the SOX Act may affect ethical decision making in today's business environment, and the criminal penalties for which the act provides.

  What average annual inflation rate would a monetarist expect

What average annual inflation rate would a monetarist expect if the Fed maintained a growth rate of M2 = 10% per year for a three year period?

  Determine wilma taxable income

Wilma is a widow, age 80 and blind, who is claimed as a dependent by her son. During 2009, she received $4,800 in Social Security benefits, $2,200 in bank interest, and $1,800 in cash dividends from stocks. Wilma's taxable income for 2009 is:


Write a Review


Similar Q& A

  Find probability- smalltown elevator produces elevator rails

Smalltown Elevator produces elevator rails. To meet specifications, an elevator rail must be between 0.995 inches and 1.005 inches in diameter. Suppose that the diameter of an elevator rail follows a normal random variable with mean of 1 inch

  Volume of square base pyramid

Given a structure shaped like a pyramid with a square base measuring 9 feet on a side and a height of 8 feet, what is the volume of the tent?

  Objective function coefficients-constraint quantity values

Gilbert Moss and Angela Pasaic spent several summers during their college years working at archaeological sites in the Southwest.

  Rate of change and fundamental theorem of calculus

The resale value of a certain industrial machine decreases at a rate that depends on its age. When the machine is t years old, the rate at which its value is changing is -960e^-t/5 dollars per year.

  Determining co-finite topology

Let X be given the co-finite topology. Suppose that X is a infinite set. Is X Hausdorff? Should compact subsets of X be closed? What are compact subsets of X?

  Find contestant receives the opportunity to win

Consider a state lottery that has a weekly television show. On this show, a contestant receives the opportunity to win $1 million. The contestant picks from 4 hidden windows

  Characterization of repeating and terminating decimals

Sometimes (for example 1/12 ) only part of the decimal repeats while in other cases (for example 1/7 ) the whole decimal repeats. Assuming a/b is a reduced fraction, how can you tell which of these two scenarios will occur? Explain.

  Determine the width of the lake

Using trigonometry to solve a Right triangle - Find the width of the lake.

  Binary operations-equivalence classes

Show that ~ is an equivalence on M and if a* deontes the equivalence class of a, let M* = {a*| a belongs to M} denote the set of all equivalence classes. Show that a*b* = (ab)* is a well-defined operation on M* deontes.

  An experimental test to detect a particular type of cancer

An experimental test to detect a particular type of cancer indicates the presence of cancer in 90% of individuals known to have this type of cancer, and in 15% of individuals known to be cancer-free (false positive)

  Finding velocity and position vectors

Given that the acceleration vector is a(t) = (-9cos(-3t)) i + (-9sin(-3t)) j + (-2t) k , the initial velocity is v(0) = i + k , and the initial position vector is r(0) = i+j+k , compute:

  Medians of triangle proof

O is the intersection point of the medians of a triangle ABC. The medians are AD, BE, CF. What is the ratio of the area of triangle EOC to TRIANGLE abc?

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