I am trying to follow the steps to the Lucas Probabilistic Primality test, given on 83 of The Federal Information Processing Standards Publication Series of the National Institute of Standards and Technology. I found this document by searching and would first like to confirm the test described in C.3.3 really is the Lucas probable prime test (also described in wikipeida)? Or is this something different? (Though the test seems common enough, I had trouble finding good reference material)
I do not understand these steps
$U_{temp} = U_{i+1}V_{i+1}mod C$
$V_{temp} = \frac{V_{i+1}^2+DU_{i+1}^2}{2} modC$
For more context:
I thought $U_{i+1}$ and $V_{i+1}$ represented 0s and 1s (binary). So what does it mean when they're written side by side like that? Somehow 'multiply' them? Or does $U_{temp}$ and $V_{temp}$ consist of two bits each? In the second line how does squaring make sense when applying it to bits?
What is meant by $K_rK_{r-1}...K_o$ is the binary expansion of $K$? Is $k_i \in$ [0, 1] or [0,1,2,3,4,5,6,7,8,9]?
for i=r-1 to 0
– northerner Aug 02 '19 at 03:24