请输入您要查询的字词:

 

单词 LastNonzeroDigitOfFactorial
释义

last non-zero digit of factorial


We will show how to compute the last non-zerodigit of the factorialMathworldPlanetmath of a number from itsdigits without having to compute the factorial itself.

Let L(n) denote the last non-zero digit of n in base 10.We note some basic properties of L which can easilybe checked:

  • For all n, we have L(10n)=L(n).

  • If L(m)5 and L(n)5, then L(mn)=L(L(m)L(n)).

We also tabulate the values of L(n!) for small values of n:

L(0!)=1
L(1!)=1
L(2!)=2
L(3!)=6
L(4!)=4
L(5!)=2
L(6!)=2
L(7!)=4
L(8!)=2
L(9!)=8
L(10!)=8

Next, we make two less trivial observations:

{theorem}

For all positive integers n, we have L(n!)5.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/7/9 4:31:57