<div dir="ltr">Hi, <div><br></div><div>Can someone please highlight how '$' is making the difference in the execution of this function. With $ in place the function runs fine but without $ for large input values the function overflows the stack.</div><div><br></div><div><font face="monospace, monospace">--------</font></div><div><div><font face="monospace, monospace">s mp 1 = 4</font></div><div><font face="monospace, monospace">s mp n = ((s mp $ n-1)^2-2) `mod` mp</font></div></div><div><font face="monospace, monospace">--------</font></div><div><br></div><div>I cannot understand the difference between</div><div><span style="font-family:monospace,monospace">(s mp $ n-1) and </span><span style="font-family:monospace,monospace">(s mp n-1)</span></div><div><br></div><div>Thanks,</div><div><div><div class="gmail_signature"><div dir="ltr"><font color="#0b5394"><font style="background-color:rgb(255,255,255)"><font size="2" face="georgia, serif">Shishir Srivastava</font><br><font face="georgia, serif"> <span></span><span></span>+44 (0) 750 127 5019</font></font><br></font><br></div></div></div>
</div></div>