!set title=Ricorrenza
!if $wims_read_parm!=$empty
 !goto $wims_read_parm
!endif
oef2wims_version=3.22
author=Frédéric, Pitoun
email=frederic.pitoun@free.fr
language=it
leftrange=-5.000000
rightrange=5.000000
computeanswer=yes
precision=1000

ansorder=r,r
varcnt=14
prevarcnt=13
postvarcnt=0
replycnt=2
choicecnt=0
conditioncnt=0
feedbackcnt=0
format=html

val1=$imagedir
val2=$confparm1
val3=$confparm2
val4=$confparm3
val5=$confparm4

!if $testcondition=yes
 !goto test
!endif
!if $status=waiting
 !exit
!endif

tmp0=!randitem -1,1

tmp1=!randint 1, 5

val6=$[rint($(tmp0)*$(tmp1))]
tmp0=!randint 1, 5

val7=$[rint($(tmp0))]
tmp0=!randitem -1,1

tmp1=!randint 1, 5

val8=$[rint($(tmp0)*$(tmp1))]
tmp0=!randint -5, 5

val9=$[rint($(tmp0))]
t_=!replace internal \( by ( in $val7*n+$val8
tmp0=!exec maxima $t_

val10=!rawmath $(tmp0)

!ifval $val2= 
val11=$[rint( 2)]
!else
val11=$[rint($val2)]
!endif
tmp0=!randint 2, $val11

val12=$[rint($(tmp0))]
val13=$[rint($val6*$val9+$val7*0+$val8)]
val14=$[rint($val6*$val13+$val7*1+$val8)]
t_=!replace internal \( by ( in $val6*x+$val7*y+$val8
tmp0=!exec maxima $t_

val15=!rawmath $(tmp0)
tmp0=!replace internal y by n in $val15

val15=$(tmp0)
tmp0=!replace internal x by u_n in $val15

val15=$(tmp0)
tmp0=!texmath $val15

val16=$(tmp0)
replytype1=default
replyname1=Risposta u_1
replygood1=$val13
replytype2=default
replyname2=Risposta u_2
replygood2=$val14
question=__EXECUTED_1692754_EXERCISE__

!goto stat

!exit

:question
$()	Considerare la sequenza 
!insmath (u_n)
$() definita ricorsivamente ponendo 
!insmath u_0=$val9
$() e 	<p class="wimscenter">	
!insmath u_{n+1}=$val16
$()	</p>	Calcolare 
!insmath u_1
$() e 
!insmath u_2
$() .<br/>	<p class="wimscenter">	Il termine 
!insmath u_1
$()  vale 
!insmath \;\;
$()  
!read oef/embed.phtml reply 1,5 
$()	</p>	<p class="wimscenter">	Il termine 
!insmath u_2
$()  vale 
!insmath \;\;
$()  
!read oef/embed.phtml reply 2,5 
$()	</p>	
$()
!exit

:hint
$()
$()
!exit

:help
$()
$()
!exit

:solution
$()
$()
!exit

:latex
$()
$()
!exit

:feedback

!exit

:test

!exit

:stat
vsavelist=9,16
embedcnt=2
