Anonymous user
Find palindromic numbers in both binary and ternary bases: Difference between revisions
Find palindromic numbers in both binary and ternary bases (view source)
Revision as of 22:15, 27 September 2014
, 9 years ago→{{header|REXX}}: added a clarification word: "evenly" divisible.
(Updated D entry) |
m (→{{header|REXX}}: added a clarification word: "evenly" divisible.) |
||
Line 336:
::::* abcdef || '''1''' || fedcba
::* (the above two concatenation steps ensures an odd number of binary digits),
::* ensure the decimal versions are not evenly divisible by 3,
::* convert the decimal numbers to base 3,
::* ensure that the numbers in base 3 are palindromic.
|