EXIT
01 / 13
QUANT • NUMBER SYSTEM

UNIT DIGIT CYCLICITY & TRAILING ZEROS

Unit digits of 2, 3, 7, 8 repeat in cycles of 4 powers. Trailing zeros come only from pairs of (2 × 5).

SPEED TIP

In n!, trailing zeros = floor(n/5) + floor(n/25)!