Talk:Carmichael 3 strong pseudoprimes: Difference between revisions
Content added Content deleted
m (→Integer arithmetic: Still puzzled over non-rendering for non-Firefox. There is no "space" in the formula's specification. Other web pages use separately-created image files.) |
|||
Line 4: | Line 4: | ||
or, in mathematical notation (possibly not rendered), |
or, in mathematical notation (possibly not rendered), |
||
:<math>\frac{1}{\sqrt{5}}\left[\left(\frac{1 + \sqrt{5}}{2}\right)^n - \left(\frac{1 - \sqrt{5}}{2}\right)^n\right]</math> |
:<math>\frac{1}{\sqrt{5}}\left[\left(\frac{1 + \sqrt{5}}{2}\right)^n - \left(\frac{1 - \sqrt{5}}{2}\right)^n\right]</math> |
||
::All the |
::All the divisions in this task should result in an integer value. So the best solution is probably to throw/raise an exception if it doesn't.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 12:29, 24 October 2017 (UTC) |
||
==What model MOD is your MOD?== |
==What model MOD is your MOD?== |