Dear Frank,<br>
<br>
My apology for not responding sooner.  My wife has been tied up in trying to fly from Great Britain back to the USA.<br>
<br>
Yes, I care quite a lot about this, and have read and pondered your
ingenious notation.  I've submitted at least a dozen seqs that
could be better described, or at least commeneted, with your
notation.  I think I'd calculated one more that hadn't been
submitted.  Without fumbling through notes, I think it was primes
which are substrings of pi in base e, or something like that (we'd had
some discussions of what was "natural").<br>
<br>
Good notation builds clear thoughts, and elegant proofs.<br>
<br>
Best,<br>
<br>
Jonathan Vos Post<br>
<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Anybody?<br><br>Franklin T. Adams-Watters<br><br><br>-----Original Message-----
<br>From: <a href="mailto:franktaw@netscape.net">franktaw@netscape.net</a><br><br>From: Marc LeBrun <<a href="mailto:mlb@well.com">mlb@well.com</a>><br>><br>> Apologies for the length of this response, but this is a subject I've
<br>devoted a lot of time and thought to. Thanks in advance >for your<br>patience...<br>><br>> >=<a href="mailto:franktaw@netscape.net">franktaw@netscape.net</a><br>> > I really don't like the base change notation that is used for a
<br>number of OEIS entries.<br>><br>> Well, there's of course no accounting for taste, but please let me<br>assure you a considerable amount of time and effort were >expended<br>arriving at that notation.<br>>
<br>> It's far from a gratuitous choice, although there may be aspects of<br>its full intended usage that may not be immediately >apparent (and<br>which admittedly haven't been adequately documented). I will try to<br>
explain some of this below.<br>><br>> By the way, I corresponded with a number of people regarding this<br>notation before adopting it, including Don Knuth, who >appreciated its<br>motivations and didn't find it objectionable. (I was particularly
<br>concerned by its possible collision with his use of >brackets to denote<br>extraction of power series coefficients).<br>><br>> In addition there was a certain amount of eMail back-and-forth with<br>NJAS and others on the seqfan list to make sure it was >reasonably
<br>acceptable before I started using it in OEIS entries.<br>><br>> So at this point it's become a little bit established by common<br>usage. Maybe it just needs more documentation somewhere?<br><br>I haven't said anything until now for precisely this reason. And
<br>perhaps this consideration trumps all the others. But my dislike of the<br>notation recently boiled over, so let me make my case.<br><br>I regret that I wasn't involved when this discussion took place, but<br>that's water under the dam now.
<br><br>> All this is not to say we can't change it if the consensus is reached<br>that it's in fact a bad idea. But I'd at least hope this is >done with<br>due consideration for its origins.<br>><br>> > This involves writing:
<br>> > (b) [n] (c),<br>> > meaning "write n in base b, and reinterpret as base c".<br>><br>> That's a good but rough gloss, useful for quickly describing many<br>simple cases, such as 4[n]2, aka A000695, which also >happens to
<br>contain a somewhat lengthy comment (for an OEIS entry) on the notation.<br>I will try to recap some of the >genesis here.<br>><br>> 1. Strings versus integers.<br><br>I have elided this section, as I agree with it entirely.
<br><br>> 2. Bases, subscripts and ASCII<br>><br>> In trying to come up with a concise, ASCII-friendly, notation, one<br>issue I struggled mightily with was the schoolbook >convention of<br>denoting the base of a numeral-string via a subscript. Of course the
<br>most common ASCII convention for writing >a subscript is brackets [.],<br><br>However, subscripts in the OEIS are usually written a_n, not a[n].<br><br>>so that, for example, one might write<br>><br>> 101[2] = 5[10]
<br>><br>> However I couldn't figure out how to make this jibe with that key<br>values-not-strings interpretation, nor work well for >notating<br>sequences involving rebasing. For example, describing A007088 as<br>
something like<br>><br>> a(n) = (n[2])[10]<br>><br>> drags us back into the morass of expressions on strings versus<br>numerical values, and is a confusing clutter with a very high<br>>punctuation to content ratio.
<br>><br>> 3. Indexing, Polynomials and Algebra<br>><br>> Fortunately the much more common usage of subscripts to indicate<br>indexing suggested a happy alternative. It is typical to >write, say,<br>S[n] to denote the n-th member of some sequence of objects S.
<br>><br>> Indeed, when we write, say, 691, it is a compression of the expansion<br>><br>> 6 * 10^2 + 9 * 10^1 + 1 * 10^0.<br>><br>> Moreover, consider "the set of polynomials with non-negative<br>coefficients less than ten"; call it Z10. Then, in the natural
<br> >ordering, the 691st element of this sequence would be written<br>Z10[691].<br><br>This is another notational novelty, with its own opportunities for<br>confusion. Seeing Z10, my first reaction is to think the author meant
<br>Z_10, the integers mod 10, aka Z/10Z. (Z_10 is also used in the<br>literature for fractions a/b where gcd(b,10) = 1.)<br><br>It also looks like maybe it should be [Z10], a reference to the<br>bibliography.<br><br>> And of course this generalizes readily to "other values of 10", such
<br>as Z2, "the set of polynomials with non-negative >coefficients less<br>than two", and so on. Z2[691] is a ninth-degree polynomial, while<br>Z10[691] is quadratic.<br>><br>> Now the convention for denoting function application is to write the
<br>actual parameter immediately to the right. It is >optionally<br>parenthesized if needed for clarity, but there are many subjects (eg<br>lambda calculus) where simple concatenation is >the default.<br>><br>> So to map our 691st polynomial Z10[691] back into an integer, we
<br>merely apply it to the value 10 (aka "evaluated at >x=10"--but that way<br>of putting it introduces the needless new entity "x") which can be<br>written out in full as<br>><br>> Z10[691](10) = 691
<br>><br>> or more concisely as<br>><br>> Z10[691]10 = 691<br>><br>> or, dropping the "Z" (which I'll try to justify further below)<br>><br>> 10[691]10 = 691<br>><br>> which can be generalized to the identity
<br>><br>> b[n]b = n<br>><br>> Suggesting, for example, more algebraic ideas, such as b[n]q being<br>(approximately) the inverse of q[n]b.<br><br>I don't think my versions of these are in any way inferior:<br>
<br>n_{b->b} = n<br><br>and n_{b->q} is (approximately) the inverse of n_{q->b}.<br><br>> The key general idea is that the brackets suggest indexing. And then<br>we simplify the "base" arguments to expose other >relationships as much
<br>as possible.<br>><br>> But writing 2[n]10 is merely a slightly abbreviated alternative to<br>the more obscure and verbose Z2[n](10).<br>><br>> And, for example, (1/p)[.]p has a natural symmetry with p[.](1/p), so
<br>why needlessly clutter up one side more than the >other?<br>><br>> Note that b[n]q represents a mapping from numbers to numbers, without<br>the need to invoke "string" concepts.<br><br>Elided, not a difference between the notations.
<br><br>> 4. Object-oriented ("numbral") arithmetic<br>><br>> More radically, the indexing interpretation doesn't constrain b to be<br>a numerical "base" at all--it can be a more general "basis" >whose
<br>elements follow some different algebra, such as GF2. This allows us to<br>encode its elements as GF2[n]2 so as to be able >to refer to them in<br>OEIS sequences, and to write identities such as<br>><br>> (GF2[n]^2)2 = Z2[n]4 (*)
<br><br>But GF2 to mean "the sequence of polynomials with coefficients in GF(2)<br>is *another* novelty, and likewise subject to confusion.<br><br>> where the types of the subexpressions are clear as is their<br>applicative evaluation (a la lambda calculus)...
<br>><br>> ...but I'll spare you that digression, and try to address the other<br>points:<br>><br>> > The main problem is that it is not distinctive enough; it looks<br>like it means b*n*c.<br>><br>> Perhaps only if you're in the habit of thinking of []s as being
<br>equivalent to ()s. While in some contexts that's done, in<br> >typographically starved ASCII it's not all that usual--often []s are<br>interpreted very differently than ()s.<br><br>I'm a programmer, quite familiar with such conventions - it still looks
<br>like multiplication to me.<br><br>> > Also, the "n" in the center can get a bit lost.<br>><br>> Yes, I can sympathize with that. But it's just as often the case in<br>the OEIS that the "n" is just a running index anyway. If >the "b" and
<br>"q" are just numbers, then it stands out by being a letter. In fancier<br>formulas any or all of the three might be >complicated.<br>><br>> > Instead, I propose writing:<br>> > n_{b->c}.
<br>> > This avoids both problems I described above; and it is clear enough<br>that I think someone might guess what it means.<br><br>In my mind, this is the strongest point in its favor. I don't think<br>anyone not already familiar with the b[n]c notation would guess what it
<br>means.<br><br>> > (The "->" of course represents an arrow, which is what would be<br>used if writing by hand or if typesetting.)<br>><br>> This is certainly an alternative, which I'd consider if all I ever
<br>wanted to do is convert between numerical bases. But I'd be >sad to<br>lose all those other interesting allusions. Writing<br>><br>> n_{GF2->2}<br>><br>> seems more cluttered and confusing to me,<br>
<br>It doesn't to me.<br><br>>and I can't see how to use it to write the above identity (*) which<br>expresses that "A000695 encodes the squares of GF2".<br><br>Try<br><br>(n_{2->GF2})^2_{GF2->2} = n_{2->4}.
<br><br>It's a little more verbose, but in incorporates the idea that writing n<br>as a polynomial in GF(2) involves its binary representation, a fact<br>that is lost in your version.<br><br>This notation can also be used for general substitutions:
<br><br>(x^2+x+1)_{x->y-1} = y^2-y+1.<br><br>In mathematical logic, this is sometimes written something like<br><br>(x^2+x+1) [y-1/x] = y^2-y+1<br><br>(more often with logical formulas than arithmetic expressions); but
<br>using this more generally is also likely to be confusing.<br><br>> But, as there's no accounting for taste, I will happily defer to<br>whatever NJAS and the OEIS community prefers.<br><br>As will I, of course.<br><br>
Frank Adams-Watters<br><br><br></blockquote></div><br>