Re: Valentine's Day MC: A few modest insights, n! digits  part 3, anyone? Message #1 Posted by Gerson W. Barbosa on 22 Feb 2007, 6:05 p.m.
Hello Valentin,
I have noticed these two discrepancies between your HP15C and HP71B programs, when checking against the HP200LX:
N HP15C HP200LX HP71B
44315509 319615034 319615033 319615033
54336595 396700506 396700505 396700506
This suggests the HP15C fails for N=44315509 and the HP71B fails for N=54336595.
The 200LX equation is the following:
NDF=INT(N*LOG(N/EXP(1))+LOG(2*PI*N)/2+1)
On the HP200LX, the second result is 396700505.9999999. It appears to be one of the cases the guard digits are not enough... This should be checked with more digits, though. Apparently, these are the only two discrepancies in the range [1..100,000,000].
Best regards,
Gerson.
Edited: 22 Feb 2007, 6:11 p.m.
