(38G) OEIS A008904: Last Non-Zero Digit of Factorial
|
09-26-2017, 11:54 AM
(This post was last modified: 09-26-2017 11:59 AM by Gerald H.)
Post: #3
|
|||
|
|||
RE: (38G) OEIS A008904: Last Non-Zero Digit of Factorial
While the above symbolics work correctly, the recursion takes too long for large input.
Here a programme that takes integer input from the last entry to the stack & returns the result in Ans in the Home screen: Code: Ans►N: The programme IQUOT5 takes an integer from the previous calculation & stores the Remainder on division by 5 in R & quotient in Q, returning Q in Ans. Code: Ans►Q: |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(38G) OEIS A008904: Last Non-Zero Digit of Factorial - Gerald H - 09-10-2017, 04:57 PM
RE: (38G) OEIS A008904: Last Non-Zero Digit of Factorial - Gerald H - 09-11-2017, 03:54 PM
RE: (38G) OEIS A008904: Last Non-Zero Digit of Factorial - Gerald H - 09-26-2017 11:54 AM
|
User(s) browsing this thread: 2 Guest(s)