Search results

  1. D

    Zeroes at the end of a FACTORIAL

    for writing a program it may be useful to get the number of zeros at the end of a factorial without usage of floor function: n = p(1)*5 + q(1) p(1) = p(2)*5 + q(2) p(2) = p(3)*5 + q(3) etc p(n-1) = p(n)*5 + q(n) so, p(n) = (p(n-1) - q(n))/5 p(n-1) = (p(n-2) - q(n-1))/5 etc...
Top