All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
i . i ^2 . i^3 ... i^999
=
i ^(1+2+...+998+999)
=
i ^ 499500
(i^x has period four, 499500 modulo four equals 0)
=
i^0
=
1
so the answer looks correct to me
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]