(33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N! - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N! (/thread-18585.html) |
(33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N! - Gerald H - 07-23-2022 02:07 PM [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 RE: (33s): OEIS A8905 & A34886: 1st Digit of N! & Number of Digits in N! - Gerald H - 07-24-2022 09:41 AM Edit to post #1, programmes W & X corrected. |