In decimal representation, find the last non-zero digit of .
Clarification : It is 2015 factorial.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
From this link , we have If D ( N ) denotes the last non zero digit of factorial, then
D ( N ) = 4 D ( ⌊ 5 N ⌋ ) ⋅ D ( Units digit of $N$ ) (If tens digit of $N$ is odd) D ( N ) = 6 D ( ⌊ 5 N ⌋ ) ⋅ D ( Units digit of $N$ ) (If tens digit of $N$ is even)
Where ⌊ ⋯ ⌋ is greatest integer function.
This can be coded in python 3.4 like this: