Take a positive integer.
If it's odd, multiply it by 3 and add 1.
If it's even, divide it by 2.
Example: 7-22-11-34-17-52-26-13-40-20-10-5-16-8-4-2-1-4-2-1-4-2-1... Any positive integer you take, you end up in a 1-4-2-1 loop. It's not proved yet but there's no number found yet that satisfies otherwise. That's the Collatz Conjecture or the 3n+1 problem. Probably the easiest conjecture to explain to someone. Good day/night!
I'm sure there is a use for it, that pattern may be representative of some other phenomenon in the universe that we haven't correlated it to as of yet.
Depends what you mean by a good reason I guess. A lot of very capable mathematicians have put time in to the problem and it's proven to be pretty resistant to a solution. I think problems like this often feel a little incongruous because they are so simple to state but so hard to solve.
One of Bach's most famous church cantatas, BWV 140[1], was written for the 27th (or no. 3^3, the importance of this will be apparent in a moment) Sunday after Trinity, the last possible Sunday before Advent.
The cantata is a chorale cantata based on the Lutheran Hymn "Wachet auf, ruft uns die Stimme", the opening movement is a chorus that is based on this tune. The tune is in Bar form, the first 3 verses are repeated, followed by 6 verse which is sung once through (3x2 + 3x2), and Bach's chorus mirrors this structure. Bach decided to set the piece in E-flat, which is a key signature with 3 flats. He also decided to make the time signature 3/4, so each bar has 3 beats. There are 3 groups of musicians involved (not counting the obligatory basso continuo): 1) vocal forces, 3 parts (Soprano + Alto + Tenor, the bass mostly doubles the basso continuo and is not independent); 2) strings, 3 parts (violin 1 + violin 2 + viola); 3) winds, 3 parts (oboe 1 + oboe 2 + alto oboe). Also, the opening melody of the chorale outlines the 3 notes of the tonic triad of E-flat (E-flat, G, B-flat), while later on, Bach being Bach, there is a miniature fugato where the three lower voices open with the same 3 pitches in a different order (G, B-flat, E-flat). I'm usual sceptical of most other numerological readings of Bach's music precisely because when Bach wished to make a point with numbers, he makes it damned obvious, as in this case. [1] https://www.youtube.com/watch?v=WfNeJ-Cedeo
I use !$ multiple times every day but you just helped me make the connection to try !^ for the first argument and I think I'm going to start using that as well. Thanks!
At least in zsh, there are also !:1 for the first argument, et cetera with the rest of natural numbers, and something like !:* for all the arguments without the command.
The generic form is !n:m for n-th last command line and m-th argument, with an omitted n being a shortcut for the last line. Not sure if all of this works the same in bash.
And if you don't want the last argument but the nth one, press Alt-n before Alt-. (n starts at 0, so Alt-0 Alt-. in the above situation would get you "mkdir").
I wonder what aspects have gotten worse over the years and how the dynamic has shifted, if at all. Or maybe it doesn't matter this was from 20 years ago? :<
Depends on whether you interpret something being on the news as a measure of how common it is.
This is often demonstrated with the two hypothetical headlines "Dog bites Man" vs "Man bites Dog". One is expected based on its ubiquity, and so a poor headline, where you want some emotional reaction to hook readers.
True - and a good point - but also a troubling one as the clear implication is that male suffering is really not considered a concern - at least to the news platforms.
Comments (762) 128 threads
Earlier commentsExample:
7-22-11-34-17-52-26-13-40-20-10-5-16-8-4-2-1-4-2-1-4-2-1...
Any positive integer you take, you end up in a 1-4-2-1 loop.
It's not proved yet but there's no number found yet that satisfies otherwise. That's the Collatz Conjecture or the 3n+1 problem.
Probably the easiest conjecture to explain to someone.
Good day/night!
Continue this thread — 1 reply
(Obviously a subjective question in practice, so chances are you might need to add a bit of qualification)
Continue this thread — 3 replies
https://twitter.com/badamczewski01/status/142826257042792857...
Continue this thread — 1 reply
I'll take the even ones. Who works on the odd ones?
Continue this thread — 4 replies
The cantata is a chorale cantata based on the Lutheran Hymn "Wachet auf, ruft uns die Stimme", the opening movement is a chorus that is based on this tune. The tune is in Bar form, the first 3 verses are repeated, followed by 6 verse which is sung once through (3x2 + 3x2), and Bach's chorus mirrors this structure. Bach decided to set the piece in E-flat, which is a key signature with 3 flats. He also decided to make the time signature 3/4, so each bar has 3 beats. There are 3 groups of musicians involved (not counting the obligatory basso continuo): 1) vocal forces, 3 parts (Soprano + Alto + Tenor, the bass mostly doubles the basso continuo and is not independent); 2) strings, 3 parts (violin 1 + violin 2 + viola); 3) winds, 3 parts (oboe 1 + oboe 2 + alto oboe). Also, the opening melody of the chorale outlines the 3 notes of the tonic triad of E-flat (E-flat, G, B-flat), while later on, Bach being Bach, there is a miniature fugato where the three lower voices open with the same 3 pitches in a different order (G, B-flat, E-flat).
I'm usual sceptical of most other numerological readings of Bach's music precisely because when Bach wished to make a point with numbers, he makes it damned obvious, as in this case.
[1] https://www.youtube.com/watch?v=WfNeJ-Cedeo
Also see:
* BACH Motif: https://en.m.wikipedia.org/wiki/BACH_motif
The letters of his name, B, A, C, H encoding a melody.
https://youtu.be/YYlzPWEQhLg
I would have referred to this using !$, which is one of the Bourne shell history substitutions. Like
(The "!" has the connotation "history" in the shell, while the "$" has the connotation "last", as in regular expressions.)An advantage of the way you mentioned is that you could actually see the history item displayed on the command line before running the command!
Another example could be
for "save the previous command into the file myscript".Continue this thread — 1 reply
The generic form is !n:m for n-th last command line and m-th argument, with an omitted n being a shortcut for the last line.
Not sure if all of this works the same in bash.
Continue this thread — 1 reply
https://www.man7.org/linux/man-pages/man3/readline.3.html
andAll engineers working with the command line (even after 35 years) really, really should open and read
to make sure you don't end up with something like urxvt-readline(1)
There are several other ways to do this sort of thing too. See e.g. https://stackoverflow.com/questions/4009412/how-to-use-argum...
https://www.hrw.org/reports/2001/prison/report.html
Caution: that’s hard, explicit, distressing reading.
I wonder what aspects have gotten worse over the years and how the dynamic has shifted, if at all. Or maybe it doesn't matter this was from 20 years ago? :<
You wouldn't get that impression reading the news.
https://wikipedia.org/wiki/Violence_against_men
This is often demonstrated with the two hypothetical headlines "Dog bites Man" vs "Man bites Dog".
One is expected based on its ubiquity, and so a poor headline, where you want some emotional reaction to hook readers.
Continue this thread — 2 replies
Continue this thread — 5 more replies
All comments shown.
Couldn't load more comments. Check your connection and try again.