A recent message in the stream: "[Jforum] Fw: OEIS A240563 - prime
concatenation" mentions
https://rosettacode.org/wiki/M%C3%B6bius_function (Moebius for
non-German readers!)
I noticed that Rosetta's current J proposal,
mu=: */@:-@~:@q:
doesn't work, because of a change in the output of q: on an array - the
right padding is
now 1s rather than 0s; I forget how to get round the problem.)
mu DOES work ok if you force the rank to be zero:
mu"0 >: i.20
1 _1 _1 0 _1 1 _1 0 0 1 _1 0 _1 1 1 0 _1 0 _1 0
but the Rosetta example, without explicit rank, now results as follows:
mu >: i. 10 20
1
Over to Raul maybe?
Mike
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com