<?xml version="1.0" encoding="utf-8" standalone="no"?><?xml-stylesheet href="/mathmlc2p.xsl" type="text/xsl"?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>johnny</title>
</head>
<body>
<tt>
Johnny is looking for his ideal girfriend, which (according to him; and not meant to favor any preconceived biases) must be red-haired, green-eyed, slender, and tall.<br/>
<br/>
He knows four women: Adele, Betty, Carol, and Doris.<br/>
<br/>
Here is a list of caveats:<br/>
<br/>
# Only one of the four women has all four characteristics that Johnny requires.<br/>
# Only three of the women are both green-eyed and slender.<br/>
# Only two of the women are both red-haired and tall.<br/>
# Only two of the women are both slender and tall.<br/>
# Only one of the women is both green-eyed and red haired.<br/>
# Adele and Betty have the same color eyes.<br/>
# Betty and Carol have the same color hair.<br/>
# Carol and Doris have different builds.<br/>
# Doris and Adele are the same height.<br/>
<br/>
Which one of the four women satisfies all of Johnny's requirements?<br/>
<br/>
groebner({r[a]^2+r[a],<br/>
g[a]^2+g[a],<br/>
s[a]^2+s[a],<br/>
t[a]^2+t[a],<br/>
r[b]^2+r[b],<br/>
g[b]^2+g[b],<br/>
s[b]^2+s[b],<br/>
t[b]^2+t[b],<br/>
r[c]^2+r[c],<br/>
g[c]^2+g[c],<br/>
s[c]^2+s[c],<br/>
t[c]^2+t[c],<br/>
r[d]^2+r[d],<br/>
g[d]^2+g[d],<br/>
s[d]^2+s[d],<br/>
t[d]^2+t[d],<br/>
r[a]*g[a]*s[a]*t[a]+(r[b]*g[b]*s[b]*t[b]+1)*(r[c]*g[c]*s[c]*t[c]+1)*(r[d]*g[d]*s[d]*t[d]+1),<br/>
r[b]*g[b]*s[b]*t[b]+(r[c]*g[c]*s[c]*t[c]+1)*(r[d]*g[d]*s[d]*t[d]+1)*(r[a]*g[a]*s[a]*t[a]+1),<br/>
r[c]*g[c]*s[c]*t[c]+(r[d]*g[d]*s[d]*t[d]+1)*(r[a]*g[a]*s[a]*t[a]+1)*(r[b]*g[b]*s[b]*t[b]+1),<br/>
r[d]*g[d]*s[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[d]*g[d]+1)*(r[a]*g[a]+1)*(r[b]*g[b]+1),<br/>
r[d]*g[d]+(r[a]*g[a]+1)*(r[b]*g[b]+1)*(r[c]*g[c]+1),<br/>
g[a]+g[b],<br/>
r[b]+r[c],<br/>
s[c]+s[d]+1,<br/>
t[d]+t[a]},<br/>
{r[a],g[a],s[a],t[a],<br/>
r[b],g[b],s[b],t[b],<br/>
r[c],g[c],s[c],t[c],<br/>
r[d],g[d],s[d],t[d]},lex,2)<br/>
=<br/>
<math xmlns="http://www.w3.org/1998/Math/MathML"><vector><apply><plus/><cn>1</cn><ci><msub><mi>r</mi><mrow><ci>a</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>g</mi><mrow><ci>a</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>s</mi><mrow><ci>a</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>t</mi><mrow><ci>a</ci></mrow></msub></ci></apply><ci><msub><mi>r</mi><mrow><ci>b</ci></mrow></msub></ci><apply><plus/><cn>1</cn><ci><msub><mi>g</mi><mrow><ci>b</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>s</mi><mrow><ci>b</ci></mrow></msub></ci></apply><apply><plus/><ci><msub><mi>t</mi><mrow><ci>b</ci></mrow></msub></ci><apply><power/><ci><msub><mi>t</mi><mrow><ci>b</ci></mrow></msub></ci><cn>2</cn></apply></apply><ci><msub><mi>r</mi><mrow><ci>c</ci></mrow></msub></ci><apply><plus/><cn>1</cn><ci><msub><mi>g</mi><mrow><ci>c</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>s</mi><mrow><ci>c</ci></mrow></msub></ci></apply><apply><plus/><apply><plus/><cn>1</cn><ci><msub><mi>t</mi><mrow><ci>b</ci></mrow></msub></ci></apply><ci><msub><mi>t</mi><mrow><ci>c</ci></mrow></msub></ci></apply><apply><plus/><cn>1</cn><ci><msub><mi>r</mi><mrow><ci>d</ci></mrow></msub></ci></apply><ci><msub><mi>g</mi><mrow><ci>d</ci></mrow></msub></ci><ci><msub><mi>s</mi><mrow><ci>d</ci></mrow></msub></ci><apply><plus/><cn>1</cn><ci><msub><mi>t</mi><mrow><ci>d</ci></mrow></msub></ci></apply></vector></math><br/>
<br/>
References<br/>
<br/>
<a href="http://groups.google.com/group/sci.math.symbolic/browse_frm/thread/6315e82bf75a5c6/">http://groups.google.com/group/sci.math.symbolic/browse_frm/thread/6315e82bf75a5c6/</a> Google Groups: View Thread &quot;Helping Johnny to find his ideal woman (a problem in Set Theory, and Mathematica)&quot;<br/>
</tt>
</body>
</html>
