Ah, never mind, I see it now. You can put leading zeros on the binary number, which makes it a palindrome.
(This is necessary also, to understand why J gave me that 2046 answer). For a more traditional interpretation of binary palindromes, I guess I should have used: (#~ (-: |.)@#:"0) 1+2016}.i.2^11 2047 Thanks, -- Raul On Mon, Dec 28, 2015 at 9:38 AM, Raul Miller <[email protected]> wrote: > "A palindrome is a word, phrase, number, or other sequence of > characters which reads the same backward or forward." > > You probably meant something different? > > But, seeing as this is the programming forum and not the chat forum, > and since you did pose a specific question: > > (#~ (-: |.)"1@#:) 1+2016}.i.2^11 > 2046 > > I hope this helps, > > -- > Raul > > > On Mon, Dec 28, 2015 at 9:21 AM, Jose Mario Quintana > <[email protected]> wrote: >> I had not realized the this year is a palindrome in binary until I saw >> Boss' message in the chat forum (see below). >> >> The question is: when will the next one be? >> >> The answer can be easily found, of course, using J. >> >> Hint: I will be very lucky if I can ever say (truthfully) "this year is a >> palindrome in binary" after this year ends. >> >> >> >> >> [Jchat] 11111100000 >> R.E. Boss r.e.boss at outlook.com >> Mon Dec 28 12:47:05 UTC 2015 >> •Previous message: [Jchat] Saving Data for Future Use >> • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] >> >> Happy 11111100000 ! >> >> R.E. Boss >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
