<?xml version="1.0" encoding="UTF-8"?>
<quiz>
 <!-- categoryid: 2 -->
 <question type="category"><category><text>Batxillerat/Combinatòria</text></category></question>
 
 <!-- resourceid-resourcedataid: 1-810 -->
 <question type="shortanswerwiris">
    <name><text>Permutacions amb repetició</text>
</name>
    <questiontext format="html">
<text>En un concurs literari es donen premis a #m persones. Aquests premis són llibres i n'hi han #n de cada. De quantes maneres els poden repartir?</text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Perfecte!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mn»4«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»p«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»3«/mn»«mo».«/mo»«mo».«/mo»«mn»5«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»p«/mi»«mo»·«/mo»«mi»n«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«mfrac»«mrow»«mi»m«/mi»«mo»!«/mo»«/mrow»«msup»«mfenced»«mrow»«mi»n«/mi»«mo»!«/mo»«/mrow»«/mfenced»«mi»p«/mi»«/msup»«/mfrac»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»2«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»6«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»90«/mn»«/math»«/output»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 3-812 -->
 <question type="shortanswerwiris">
    <name><text>Permutacions sense repetició</text>
</name>
    <questiontext format="html">
<text>Amb les lletres de la paraula #p, quantes paraules es poden escriure intercanviant-les, encara que no tinguin significat?</text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Molt bé!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«mo»=«/mo»«mo»{«/mo»«mi»A«/mi»«mo»,«/mo»«mi»B«/mi»«mo»,«/mo»«mi»C«/mi»«mo»,«/mo»«mi»D«/mi»«mo»,«/mo»«mi»E«/mi»«mo»,«/mo»«mi»F«/mi»«mo»,«/mo»«mi»G«/mi»«mo»,«/mo»«mi»H«/mi»«mo»,«/mo»«mi»I«/mi»«mo»,«/mo»«mi»J«/mi»«mo»,«/mo»«mi»K«/mi»«mo»,«/mo»«mi»L«/mi»«mo»,«/mo»«mi»M«/mi»«mo»,«/mo»«mi»N«/mi»«mo»,«/mo»«mi»O«/mi»«mo»,«/mo»«mi»P«/mi»«mo»,«/mo»«mi»Q«/mi»«mo»,«/mo»«mi»R«/mi»«mo»,«/mo»«mi»S«/mi»«mo»,«/mo»«mi»T«/mi»«mo»,«/mo»«mi»U«/mi»«mo»,«/mo»«mi»V«/mi»«mo»,«/mo»«mi»W«/mi»«mo»,«/mo»«mi»X«/mi»«mo»,«/mo»«mi»Y«/mi»«mo»,«/mo»«mi»Z«/mi»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»5«/mn»«mo».«/mo»«mo».«/mo»«mn»16«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»treure«/mi»«mo»=«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»-«/mo»«mi»m«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»while«/csymbol»«mrow»«mi»treure«/mi»«mo»§gt;«/mo»«mn»0«/mn»«/mrow»«mtable»«mtr»«mtd»«mi»treure«/mi»«mo»=«/mo»«mi»treure«/mi»«mo»-«/mo»«mn»1«/mn»«/mtd»«/mtr»«mtr»«mtd»«mi»qt«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»)«/mo»«/mtd»«/mtr»«mtr»«mtd»«mi»l«/mi»«mo»=«/mo»«mi»esborra«/mi»«mo»(«/mo»«mi»l«/mi»«mo»,«/mo»«mi»qt«/mi»«mo»)«/mo»«/mtd»«/mtr»«/mtable»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»p«/mi»«mo»=«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»while«/csymbol»«mrow»«mi»l«/mi»«mo»§ne;«/mo»«mo»{«/mo»«mo»}«/mo»«/mrow»«mtable»«mtr»«mtd»«mi»p«/mi»«mo»=«/mo»«mi»p«/mi»«mo»§verbar;«/mo»«mi»cadena«/mi»«mo»(«/mo»«msub»«mi»l«/mi»«mn»1«/mn»«/msub»«mo»)«/mo»«/mtd»«/mtr»«mtr»«mtd»«mi»l«/mi»«mo»=«/mo»«mi»esborra«/mi»«mo»(«/mo»«mi»l«/mi»«mo»,«/mo»«mn»1«/mn»«mo»)«/mo»«/mtd»«/mtr»«/mtable»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»P«/csymbol»«mi»m«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»p«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 2-811 -->
 <question type="shortanswerwiris">
    <name><text>Permutacions sense repetició</text>
</name>
    <questiontext format="html">
<text><![CDATA[De quantes maneres possibles poden seure els #m alumnes d'una classe?<br />]]></text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Molt bé!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»15«/mn»«mo».«/mo»«mo».«/mo»«mn»25«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»P«/csymbol»«mi»m«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»15«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»1307674368000«/mn»«/math»«/output»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 5-814 -->
 <question type="shortanswerwiris">
    <name><text>Variacions amb repetició</text>
</name>
    <questiontext format="html">
<text><![CDATA[Quants números de <span class="nolink">«math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;»«mi»#n«/mi»«/math»</span> xifres es poden formar amb les xifres <span class="nolink">«math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;»«mi»#l«/mi»«/math»</span>?]]></text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Perfecte!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema que hem vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«mo»=«/mo»«mo»{«/mo»«mn»1«/mn»«mo»,«/mo»«mn»2«/mn»«mo»,«/mo»«mn»3«/mn»«mo»,«/mo»«mn»4«/mn»«mo»,«/mo»«mn»5«/mn»«mo»,«/mo»«mn»6«/mn»«mo»,«/mo»«mn»7«/mn»«mo»,«/mo»«mn»8«/mn»«mo»,«/mo»«mn»9«/mn»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»5«/mn»«mo».«/mo»«mo».«/mo»«mn»9«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mo»(«/mo»«mi»m«/mi»«mo»-«/mo»«mn»1«/mn»«mo»)«/mo»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»treure«/mi»«mo»=«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»-«/mo»«mi»m«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»while«/csymbol»«mrow»«mi»treure«/mi»«mo»§gt;«/mo»«mn»0«/mn»«/mrow»«mtable»«mtr»«mtd»«mi»treure«/mi»«mo»=«/mo»«mi»treure«/mi»«mo»-«/mo»«mn»1«/mn»«/mtd»«/mtr»«mtr»«mtd»«mi»qt«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»)«/mo»«/mtd»«/mtr»«mtr»«mtd»«mi»l«/mi»«mo»=«/mo»«mi»esborra«/mi»«mo»(«/mo»«mi»l«/mi»«mo»,«/mo»«mi»qt«/mi»«mo»)«/mo»«/mtd»«/mtr»«/mtable»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»VR«/csymbol»«mi»m«/mi»«mi»n«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»5«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»3«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mfenced close=¨}¨ open=¨{¨»«mtable align=¨center¨»«mtr»«mtd»«mn»2«/mn»«mo»,«/mo»«mn»3«/mn»«mo»,«/mo»«mn»6«/mn»«mo»,«/mo»«mn»7«/mn»«mo»,«/mo»«mn»9«/mn»«/mtd»«/mtr»«/mtable»«/mfenced»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»125«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 4-813 -->
 <question type="shortanswerwiris">
    <name><text>Variacions amb repetició</text>
</name>
    <questiontext format="html">
<text>En un curs de 2n de batxillerat es fa una votació per elegir #n càrrecs diferents. A la classe són #m alumnes i a un mateix alumne li poden recaure més d'un càrrec. De quantes maneres es poden repartir?</text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Perfecte!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema que hem vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»20«/mn»«mo».«/mo»«mo».«/mo»«mn»35«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mn»5«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»VR«/csymbol»«mi»m«/mi»«mi»n«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»34«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»3«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»39304«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 7-816 -->
 <question type="shortanswerwiris">
    <name><text>Variacions sense repetició</text>
</name>
    <questiontext format="html">
<text><![CDATA[Quants números de <span class="nolink">«math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;»«mi»#n«/mi»«/math»</span> xifres es poden formar amb les xifres <span class="nolink">«math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;»«mi»#l«/mi»«/math»</span> sense repetir cap xifra en un mateix número?]]></text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Perfecte!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema que hem vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«mo»=«/mo»«mo»{«/mo»«mn»1«/mn»«mo»,«/mo»«mn»2«/mn»«mo»,«/mo»«mn»3«/mn»«mo»,«/mo»«mn»4«/mn»«mo»,«/mo»«mn»5«/mn»«mo»,«/mo»«mn»6«/mn»«mo»,«/mo»«mn»7«/mn»«mo»,«/mo»«mn»8«/mn»«mo»,«/mo»«mn»9«/mn»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»5«/mn»«mo».«/mo»«mo».«/mo»«mn»9«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»2«/mn»«mo».«/mo»«mo».«/mo»«mo»(«/mo»«mi»m«/mi»«mo»-«/mo»«mn»1«/mn»«mo»)«/mo»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»treure«/mi»«mo»=«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»-«/mo»«mi»m«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»while«/csymbol»«mrow»«mi»treure«/mi»«mo»§gt;«/mo»«mn»0«/mn»«/mrow»«mtable»«mtr»«mtd»«mi»treure«/mi»«mo»=«/mo»«mi»treure«/mi»«mo»-«/mo»«mn»1«/mn»«/mtd»«/mtr»«mtr»«mtd»«mi»qt«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»1«/mn»«mo».«/mo»«mo».«/mo»«mi»longitud«/mi»«mo»(«/mo»«mi»l«/mi»«mo»)«/mo»«mo»)«/mo»«/mtd»«/mtr»«mtr»«mtd»«mi»l«/mi»«mo»=«/mo»«mi»esborra«/mi»«mo»(«/mo»«mi»l«/mi»«mo»,«/mo»«mi»qt«/mi»«mo»)«/mo»«/mtd»«/mtr»«/mtable»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»V«/csymbol»«mi»m«/mi»«mi»n«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»5«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»4«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»l«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mfenced close=¨}¨ open=¨{¨»«mtable align=¨center¨»«mtr»«mtd»«mn»1«/mn»«mo»,«/mo»«mn»2«/mn»«mo»,«/mo»«mn»3«/mn»«mo»,«/mo»«mn»4«/mn»«mo»,«/mo»«mn»8«/mn»«/mtd»«/mtr»«/mtable»«/mfenced»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»120«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 
 <!-- resourceid-resourcedataid: 6-815 -->
 <question type="shortanswerwiris">
    <name><text>Variacions sense repetició</text>
</name>
    <questiontext format="html">
<text>Arriben #n clients a un hotel i hi ha #m habitacions lliures. De quantes maneres es poden distribuir si cada client vol una habitació per a ell sol?</text>
    </questiontext>
    <image></image>
    <generalfeedback>
<text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.5</penalty>
    <hidden>0</hidden>
    <shuffleanswers>0</shuffleanswers>
<usecase>0</usecase><answer fraction="100">      <text>
#sol
      </text>
<feedback>        <text>
Molt bé!
        </text>
</feedback></answer><answer fraction="0">      <text>
*
      </text>
<feedback>        <text>
Repassa l'esquema vist a classe
        </text>
</feedback></answer><wirisquestion>«session lang=¨ca¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»m«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»10«/mn»«mo».«/mo»«mo».«/mo»«mn»20«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»n«/mi»«mo»=«/mo»«mi»aleatori«/mi»«mo»(«/mo»«mn»5«/mn»«mo».«/mo»«mo».«/mo»«mi»m«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»V«/csymbol»«mi»m«/mi»«mi»n«/mi»«/apply»«/math»«/input»«/command»«/group»«/library»«/session»</wirisquestion><wiriseditor></wiriseditor><wirisoptions></wirisoptions></question>
 </quiz>
