(33s) OEIS A56525: Odd Digitted Palindromes in Natural Order - 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 A56525: Odd Digitted Palindromes in Natural Order (/thread-18669.html) |
(33s) OEIS A56525: Odd Digitted Palindromes in Natural Order - Gerald H - 08-15-2022 11:46 AM Takes a natural number N from the stack & returns A56525(N) to stack. Nth odd digitted palindrome in natural order. Preserves stack https://oeis.org/A056525 Input of negative of odd digitted palindrome returns index in A56525. Preserves stack. Code: 1. LBL O Tail. Erases first digit of stack level X. Preserves stack. Code: 1. LBL T Reverso. Reverses the order of digits in stack level X. eg 1234 becomes 4321. Preserves stack. Code: 1. LBL R |