Numbers in base 10 that are palindromic in bases 2, 4, and 16: Difference between revisions
Content added Content deleted
(→{{header|J}}: I guess this task is looking for numbers which are palindromes in all three bases...) |
(→{{header|J}}: base 4, not base 8) |
||
Line 464: | Line 464: | ||
=={{header|J}}== |
=={{header|J}}== |
||
<lang J> palinbase=: (-: |.)@(#.inv)"0 |
<lang J> palinbase=: (-: |.)@(#.inv)"0 |
||
I. (2&palinbase * |
I. (2&palinbase * 4&palinbase * 16&palinbase) i.25e3 |
||
0 1 3 5 |
0 1 3 5 15 17 51 85 255 257 273 771 819 1285 1365 3855 4095 4097 4369 12291 13107 20485 21845 |
||
</lang> |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |