@zeccano Your temporary silence has been removed.
If you continue to tag people after they ask you to go away multiple times the silence will be reinstated.
Be respectful, honor people's right to disengage.
Saving the #whales is more important than planting trees to stop #climatechange. This is why
https://www.weforum.org/agenda/2019/11/whales-carbon-capture-climate-change/
If we helped whales return to their pre-whaling numbers of 4- to 5 million (up from 1.3 million today), researchers say they could capture 1.7 billion tonnes of CO2 annually - with the cost of protecting them at just $13 per person a year.
From the archives of my blog but still very relevant: "pytz: The Fastest Footgun in the West", about why you probably shouldn't be using pytz:
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
PSA: Someone has apparently typo-squatted a package with a similar name to dateutil on PyPI and is serving malicious code on it!
Please check that you depend on `python-dateutil`, no other variants. (The malicious package is `python3-dateutil`).
Okay, this isn't me, but consider doing this this month:
It is the Advent of Code for 2019
Unfortunately the fediverse is not a supporter or OAth so you will have to use Twitter, Google, Github to login.
Solution
For those who arent on an instance with math rendering you can read the answer here: http://mathb.in/38503
In the language of math the key is in how we frame the question. For example the following will provide some insight as I will show in a momemt.
\(\exists n \in \mathbb{N}\) such that \(n^3 - 1\) is prime
Not everyone understands the above notation so let me rephrase it more simply. The above translates to "There exists a Natural Number, \(n\), such that \(n^3 - 1\) is prime." Remember a Natural Numer is any positive Integer. In this example assuming that the original assertion that "8 is the only perfect cube to follow a prime" then \(n = 2\) which means the prime number, \(7\), is \(2^3 - 1 = 7\), and \(8\) is just \(2^3 = 8\). Easy enough, but how can we prove that this is the only case...
So we really just need to figure out which values for n in the equation above will give us a prime number, then we have our answer. A prime number is any number which only has 1 and itself as its factors. In other words the only two natural numbers we could possibly multiply together to get 7 is 1 and 7. So we have to start by factoring out the above equation \(n^3 - 1\), if we do that we get:
\[(n-1) \cdot (n^2+n+1)\]
It should be immediately obvious that of these two factors the left-most one is the smaller number, so we know:
\[(n-1) < (n^2+n+1)\]
Since we only care about prime numbers which satisfy the equation we know the left hand term must be equal to 1 and the right hand term most be equal to the entire number. So we can likewise assert the following:
\[1 = n-1\]
\[n^3 - 1 = n^2+n+1\]
Now we can use either equation and solve for n. It doesnt matter which equation you solve they will both give you the same value for n. Solving for n we get:
\[n = 2\]
If we plug that into the original equation, as we said earlier, er get the answer of 7, therefore 7 is the only prime number followed by a perfect cube.
\[2^3 - 1 = 7\]
Further discussion
The case where a is an integer but not a natural number can be excluded because primes are a subset of the natural numbers. If a < 1, then p = a³ - 1 < 0 which contradicts p's primality.
Answer
Assume the opposite: some cube a³ = p + 1 for some natural number a ≠ 2 and prime p.
The difference of cubes formula shows that:
p = a³ - 1 = (a² + a + 1)(a - 1)
Both terms (a² + a + 1) and (a - 1) are integers. Since p is prime, it follows that exactly one of the two must be equal to unity.
The first possibility can be ruled out because a² + a + 1 = 1 has no solution in the natural numbers.
The second is impossible because a - 1 = 1 contradicts the assumption a ≠ 2.
Solution
For those who arent on an instance with math rendering you can read the answer here: http://mathb.in/38503
In the language of math the key is in how we frame the question. For example the following will provide some insight as I will show in a momemt.
\(\exists n \in \mathbb{N}\) such that \(n^3 - 1\) is prime
Not everyone understands the above notation so let me rephrase it more simply. The above translates to "There exists a Natural Number, \(n\), such that \(n^3 - 1\) is prime." Remember a Natural Numer is any positive Integer. In this example assuming that the original assertion that "8 is the only perfect cube to follow a prime" then \(n = 2\) which means the prime number, \(7\), is \(2^3 - 1 = 7\), and \(8\) is just \(2^3 = 8\). Easy enough, but how can we prove that this is the only case...
So we really just need to figure out which values for n in the equation above will give us a prime number, then we have our answer. A prime number is any number which only has 1 and itself as its factors. In other words the only two natural numbers we could possibly multiply together to get 7 is 1 and 7. So we have to start by factoring out the above equation \(n^3 - 1\), if we do that we get:
\[(n-1) \cdot (n^2+n+1)\]
It should be immediately obvious that of these two factors the left-most one is the smaller number, so we know:
\[(n-1) < (n^2+n+1)\]
Since we only care about prime numbers which satisfy the equation we know the left hand term must be equal to 1 and the right hand term most be equal to the entire number. So we can likewise assert the following:
\[1 = n-1\]
\[n^3 - 1 = n^2+n+1\]
Now we can use either equation and solve for n. It doesnt matter which equation you solve they will both give you the same value for n. Solving for n we get:
\[n = 2\]
If we plug that into the original equation, as we said earlier, er get the answer of 7, therefore 7 is the only prime number followed by a perfect cube.
\[2^3 - 1 = 7\]
One of my favorite math problems that is easy to solve with just algebra:
Prove that 8 is the only perfect cube to follow a prime number.
If you don't know what a perfect cube is, that is simple, it is any integer raised to the power of 3. Since \(8 = 2^3\) it is a perfect cube, and it follows the number 7, which is prime. 8 is the only number that fits those conditions... prove it.
NOTE: I will give the answer as a reply. If anyone else wants to provide an answer please make sure you use a content warning.
Newton was an asshole, team Leibniz!
When I was very young and new to math I remember being very fascinated with repeating decimals, things like this
\[0.121212121212...\]
for the rest of this post I will use the bar notation and represent the above as this which is the same thing:
\[0.\overline{12}\]
Anyway what I found curious as a kid was that you can represent an infinitely repeating decimal as a fraction where it is just the repeating bit of decimals over the same number of digits of 9. So the fraction form of the above looks like this
\[\frac{12}{99}\]
This blew my mind as a kid, it seemed almost magical how denominators of multiples of 10 were for "regular" decimals and denominators of 9 were for repeating decimals. What is this voodoo!
Of course it didnt take me long to put two and two together and realize that the fraction \(\frac{9}{9}\) results in 1 and not \(0.\overline{9}\) as the above naive rules might expect.
Of course I went to the math teacher to try to get some help understanding this and having a math teacher try to explain to a kid in first or second grade that \(0.\overline{9}\) is actually the same as \(1\) wasn't easy for him I'm sure.
I remember his logical point was "well you cant have an infinitely small number, so if the 9's go on forever they are just approaching 1". As an adult looking back I realize he was thinking of it in calculus terms, which is all well and valid, but it didnt translate too well to a little kid. I remember coming back tot he teacher the next day, smug as hell, ready to prove him wrong and I came up with this equation:
\[0.\overline{9} = 1 - 0.\overline{0}1\]
He said "you cant do that" I replied "I just did!"
As an adult knowing limits and all that I understand what the teacher was saying, and of course he was right in a way. But then even older as I got deeper in math I learned of the concept of an infinitesimal, which is basically the very idea I was conveying as a kid just in a less refined way, without good wording. So now I look back and dont know if my teacher was outsmarted by child-me, or what.
@users Only 29 to reach 5,000. Less than an average day's enrolment at this time, it seems. 😉
Sex related stuff
@thj@mastodon.cloud I also find that if you give people you're whole heart and love before they had to earn it in anyway, just as some requirement for a relationship with someone you just met a few weeks or months ago, you set yourself up for illusion. Its an easy way to fool yourself and them into feeling and seeing things that arent true.
If anything this diminishes the quality of the love rather than enhancing it.
While I may "make love" more rarely now and everything else is casual sex, when I do "make love" it is far more intense and meaningful then it ever was as a kid where I loved a new woman every few months when one would come around.
Jeffrey Phillips Freeman
Innovator & Entrepreneur in Machine Learning, Evolutionary Computing & Big Data. Avid SCUBA diver, Open-source developer, HAM radio operator, astrophotographer, and anything nerdy.
Born and raised in Philadelphia, PA, USA, currently living in Utrecht, Netherlands, USA, and Thailand. Was also living in Israel, but left.
Pronouns: Sir / Mister
(Above pronouns are not intended to mock, i will respect any persons pronouns and only wish pronouns to show respect be used with me as well. These are called neopronouns, see an example of the word "frog" used as a neopronoun here: http://tinyurl.com/44hhej89 )
A proud member of the Penobscot Native American tribe, as well as a Mayflower passenger descendant. I sometimes post about my genealogical history.
My stance on various issues:
Education: Free to PhD, tax paid
Abortion: Protected, tax paid, limited time-frame
Welfare: Yes, no one should starve
UBI: No, use welfare
Racism: is real
Guns: Shall not be infringed
LGBT+/minorities: Support
Pronouns: Will respect
Trump: Moron, evil
Biden: Senile, racist
Police: ACAB
Drugs: Fully legal, no prescriptions needed
GPG/PGP Fingerprint: 8B23 64CD 2403 6DCB 7531 01D0 052D DA8E 0506 CBCE