(33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N!
|
07-23-2022, 02:07 PM
(This post was last modified: 07-24-2022 09:40 AM by Gerald H.)
Post: #1
|
|||
|
|||
(33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N!
[Edit 2022-07-24: Programmes W & X corrected.]
The 33s has both RPN & Algebraic capabilities, exemplified by the two programmes below. The RPN version uses up two of the scarce LBLs & occupies 174 Bytes of the ample memory. The Algebraic version requires 144 Bytes of memory. The RPN version is faster. Most of my students find the Algebraic version much clearer & easier to programme. Takes a real integer N from the stack & returns A8905(N) & A34886(N) to stack. First digit of n!; Number of digits in n!. https://oeis.org/A008905 https://oeis.org/A034886 Code: 1. LBL S Alternative to programme S. Code: 1. LBL W |
|||
07-24-2022, 09:41 AM
Post: #2
|
|||
|
|||
RE: (33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N!
Edit to post #1, programmes W & X corrected.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)