Chapter 1: Q44SE (page 111)
Disprove the statement that every positive integer is the sum of at most two squares and a cube of nonnegative integers.
Short Answer
The statement is not true for \(22\).
Chapter 1: Q44SE (page 111)
Disprove the statement that every positive integer is the sum of at most two squares and a cube of nonnegative integers.
The statement is not true for \(22\).
All the tools & learning materials you need for study success - in one app.
Get started for freeSuppose that Prolog facts are used to define the predicates motherand fatherwhich represent that Mis the mother of Yand Fis the father of X, respectively. Give a Prolog rule to define the predicate grandfather ,which represents that Xis the grandfather of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]
Let be the statement โStudent xhas taken class y,โ where the domain for both xconsists of all students in your class and for yconsists of all computer science courses at your school. Express each of these quantifications in English.
(a) (b)
(c) (d)
(e) (f)
For each of these sentences, determine whether an inclusive or, or an exclusive or, is intended. Explain your answer.
a) Experience with C++ or Java is required.
b) Lunch includes soup or salad.
c) To enter the country you need a passport or a voter registration card.
d) Publish or perish.
Each inhabitant of a remote village always tells the truth or always lies. A villager will give only a โYesโ or a โNoโ response to a question a tourist asks. Suppose you are a tourist visiting this area and come to a fork in the road. One branch leads to the ruins you want to visit; the other branch leads deep into the jungle. A villager is standing at the fork in the road. What one question can you ask the villager to determine which branch to take?
Let p and q be the propositions p : It is below freezing. q : It is snowing. Write these propositions using p and q and logical connectives (including negations).
a) It is below freezing and snowing.
b) It is below freezing but not snowing.
c) It is not below freezing and it is not snowing.
d) It is either snowing or below freezing (or both).
e) If it is below freezing, it is also snowing.
f )Either it is below freezing or it is snowing, but it is not snowing if it is below freezing.
g) That it is below freezing is necessary and sufficient for it to be snowing.
What do you think about this solution?
We value your feedback to improve our textbook solutions.