Skip to content
TheChatArchiveThe Chat Archive
Coherecommand-a-03-2025· CohereHugging Face LMArena Human Preference 140K

2021! (2021の階乗)の末尾に0が何個あるか?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Googlegemma-3-27b-it’s answer.
  1. User

    2021! (2021の階乗)の末尾に0が何個あるか?

  2. Cohere Assistant

    2021! (2021の階乗)の末尾に0が何個あるかを調べるには、階乗の中に含まれる素因数2と5の個数を数える必要があります。末尾の0は、2と5がペアになって10になるため、その数は5の個数に等しくなります(2の方が通常多いため)。

    手順:

    1. 5の倍数の個数を数える: [ \left\lfloor \frac{2021}{5} \right\rfloor + \left\lfloor \frac{2021}{25} \right\rfloor + \left\lfloor \frac{2021}{125} \right\rfloor + \left\lfloor \frac{2021}{625} \right\rfloor + \left\lfloor \frac{2021}{3125} \right\rfloor ]

    2. 各項を計算する: [ \left\lfloor \frac{2021}{5} \right\rfloor = 404 ] [ \left\lfloor \frac{2021}{25} \right\rfloor = 80 ] [ \left\lfloor \frac{2021}{125} \right\rfloor = 16 ] [ \left\lfloor \frac{2021}{625} \right\rfloor = 3 ] [ \left\lfloor \frac{2021}{3125} \right\rfloor = 0 ]

    3. 合計する: [ 404 + 80 + 16 + 3 + 0 = 503 ]

    したがって、2021!の末尾に0が503個あります。

    [ \boxed{503} ]

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.