# Math formulas you figured out with no help

**URL:** <https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [July 14, 2012, 7:39pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242 "2012-07-14T19:39:32Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [July 22, 2012, 7:26pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/21 "2012-07-22T19:26:52Z")

</div>

> [@JohnT](#):
>
> Huh. I just double the celsius #, take off 10% of the previous result, then add 32.
> 
> For example, 30C = F
> 
> 30\*2=60  
> 60-6=54  
> 54+32=86
> 
> 30C=86F

No examples needed. 2C - 10% of 2C + 32 = 0.9 x 2C + 32 = 1.8C + 32 = (9/5)C + 32.

---

<div class="post-metadata">

**Author:** ![Chefguy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chefguy/32/138_2.png) [@Chefguy](https://boards.straightdope.com/u/Chefguy)\
**Post date:** [July 22, 2012, 7:48pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/22 "2012-07-22T19:48:26Z")

</div>

> [@aceplace57](#):
>
> Saw this once on a DIY show. Practical use of Pythagorus’ theorum.
> 
> 3 4 5 rule. To check a corner for square. Measure 3 units down one side and make a mark. 4 units down the other and mark. Measure the hypotenuse from mark to mark. Will be 5 if you have a right, 90 degree corner. Very handy when laying out string line for a outdoor project (like a brick patio).
> 
> Another way, measure the distance between opposite corners. Then repeat for the other two opposite corners. Will be the same distance if your frame is square.

It also works for 5, 12, 13; but it’s clumsier.

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [July 22, 2012, 11:45pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/23 "2012-07-22T23:45:10Z")

</div>

Not a formula, but I found out Poncelet’s Porism on my own. Although I must admit that I only found it out for polygons inside circles. I didn’t extend it to all conic sections, exterior as well as interior.

> **[Poncelet's closure theorem](https://en.wikipedia.org/wiki/Poncelet%27s_porism)**
>
> In geometry, Poncelet's closure theorem, also known as Poncelet's porism, states that whenever a polygon is inscribed in one conic section and circumscribes another one, the polygon must be part of an infinite family of polygons that are all inscribed in and circumscribe the same two conics. It is named after French engineer and mathematician Jean-Victor Poncelet, who wrote about it in 1822; however, the triangular case was discovered significantly earlier, in 1746 by William Chapple. Poncele...

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [July 23, 2012, 1:42am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/24 "2012-07-23T01:42:31Z")

</div>

I discovered the “shuffle idempotent” that could, in principle, tell you without fail whether a given permutation is a shuffle. The only trouble is that applied to a deck of 52 cards it would have 52! (that’s 52 factorial) terms, a bit unfeasible. But it has theoretical interest. It took only 6 years of coming back to the question from time to time and gnawing away at it to do this.

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [July 23, 2012, 2:06pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/25 "2012-07-23T14:06:52Z")

</div>

I figured out that _x[sup]n[/sup] - x_ is exactly divisible by _n_ if _n_ is prime, and I quite like my proof of it, but I don’t know whether this is at all noteworthy or just really trivial. 🙂

---

<div class="post-metadata">

**Author:** ![kayaker](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kayaker/32/441_2.png) [@kayaker](https://boards.straightdope.com/u/kayaker)\
**Post date:** [July 23, 2012, 2:46pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/26 "2012-07-23T14:46:35Z")

</div>

In undergrad physics, someone asked if formulas would be provided on the midterm (some professors did). He told us not to bother with memorization. When he passed out the exam and there was no formula page, people began raising their hands, thinking their test was missing a page.

The professor turned to the blackboard and wrote in giant letters F=ma. “From this you can derive anything else you need”. I loved the class and got an A, but there were many angry people.

---

<div class="post-metadata">

**Author:** ![bup](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bup](https://boards.straightdope.com/u/bup)\
**Post date:** [July 23, 2012, 3:06pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/27 "2012-07-23T15:06:59Z")

</div>

1. That the ‘9’ in any base (that is, the digit that is the largest single digit number, one less than the base itself) has the rule that, given a number, the ‘9’ divides that number if and only if it divides the sum of the digits of that number.

Most people know that in base 10, you can add the digits of a number to see if it’s divisible by 9. It also works for 7 in base 8 (octal), for 15 in base 16 (hex), etc.

It also appears to be true of the divisors of the ‘9’ - 3 and 5, divisors of 15, follow the rule in base 16. 3 follows the rule in our familiar number system. I’ve never bothered to figure out why that is, though.

1. A formula for generating Pythagorean triples.

2. That is a an element of a group is a generator of that group, then its inverse is also a generator of the group (fairly obvious, but it also leads to the conclusion that groups have even numbers of generators except for the primitive case of a one-element group).

---

<div class="post-metadata">

**Author:** ![bup](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bup](https://boards.straightdope.com/u/bup)\
**Post date:** [July 23, 2012, 3:10pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/28 "2012-07-23T15:10:54Z")

</div>

> [@BigT](#):
>
> I figured out why adding subsequent odd numbers gets you the next square, and only belatedly converted it back to algebra (X[sup2[/supo]+2x+1 = (x+1)[sup]2[/sup]. I also did the same thing with figuring out products from other products: I know 25 \* 25 = 625, so 26 \* 24 = 625 + 25 - 26 = 624.

Oh, yeah, that. It’s a good one to show a middle-school kid, and becomes easy to understand if one draws the squares _as_ squares:

o

o**o  
oo**

oo **o**  
oo **o**  
**ooo**

ooo **o**  
ooo **o**  
ooo **o**  
**oooo**  
…

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [July 23, 2012, 6:05pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/29 "2012-07-23T18:05:49Z")

</div>

> [@bup](#):
>
> 1. That the ‘9’ in any base (that is, the digit that is the largest single digit number, one less than the base itself) has the rule that, given a number, the ‘9’ divides that number if and only if it divides the sum of the digits of that number.
> 
> Most people know that in base 10, you can add the digits of a number to see if it’s divisible by 9. It also works for 7 in base 8 (octal), for 15 in base 16 (hex), etc.
> 
> It also appears to be true of the divisors of the ‘9’ - 3 and 5, divisors of 15, follow the rule in base 16. 3 follows the rule in our familiar number system. I’ve never bothered to figure out why that is, though.

Write an n-digit number as ABCD…N and it equals 10[sup]n-1[/sup]A + 10[sup]n-2[/sup]B + 10[sup]n-3[/sup]C + 10[sup]n-4[/sup]D + … N. That’s equal to A times a string of nines, plus B times a string of nines, plus… plus A+B+C+D+…N. Plainly the whole of the “string of nines” part is divisible by 9 (and hence 3) no matter the specific A, B, C etc. Hence if the other bit, A+B+C+D+…N, is divisible by 3 then the whole shooting match is, and more rigorously if it’s divisible by 9. Of course, if N is even then the number is divisible by 6. Generalise as you see fit for any number base, an application of the above logic shows that 3 and 5 must indeed work for base 16 and a whole bunch of numbers would work in base 61. 😃

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 23, 2012, 6:31pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/30 "2012-07-23T18:31:38Z")

</div>

> [@Malacandra](#):
>
> I figured out that _x[sup]n[/sup] - x_ is exactly divisible by _n_ if _n_ is prime, and I quite like my proof of it, but I don’t know whether this is at all noteworthy or just really trivial. 🙂

This is [Fermat’s little theorem](https://en.wikipedia.org/wiki/Fermat%27s_little_theorem).

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [July 23, 2012, 9:17pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/31 "2012-07-23T21:17:20Z")

</div>

> [@ultrafilter](#):
>
> This is [Fermat’s little theorem](https://en.wikipedia.org/wiki/Fermat%27s_little_theorem).

In that case, I feel quite proud for figuring out both this and the binomial proof of it completely unaided. 🆒

footnote: I don’t use modular arithmetic in the proof, but it’s a proof by induction using the given lemma about binomials.

---

<div class="post-metadata">

**Author:** ![bup](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bup](https://boards.straightdope.com/u/bup)\
**Post date:** [July 23, 2012, 9:24pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/32 "2012-07-23T21:24:35Z")

</div>

> [@Malacandra](#):
>
> Write an n-digit number as ABCD…N and it equals 10[sup]n-1[/sup]A + 10[sup]n-2[/sup]B + 10[sup]n-3[/sup]C + 10[sup]n-4[/sup]D + … N. That’s equal to A times a string of nines, plus B times a string of nines, plus… plus A+B+C+D+…N. Plainly the whole of the “string of nines” part is divisible by 9 (and hence 3) no matter the specific A, B, C etc. Hence if the other bit, A+B+C+D+…N, is divisible by 3 then the whole shooting match is, and more rigorously if it’s divisible by 9. Of course, if N is even then the number is divisible by 6. Generalise as you see fit for any number base, an application of the above logic shows that 3 and 5 must indeed work for base 16 and a whole bunch of numbers would work in base 61. 😃

Wait. I’m almost there.

A[sup]n-1[/sup] is equal to A00000000…000, which is equal to 999999999..999 + **1** , though - not 99999999…999 + **A**.

So doesn’t “That’s equal to A times a string of nines, plus B times a string of nines, plus… plus A+B+C+D+…N.” become  
That’s equal to A times a string of nines, plus B times a string of nines, plus… plus 1+1+1+1+1…+1"?

---

<div class="post-metadata">

**Author:** ![bup](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@bup](https://boards.straightdope.com/u/bup)\
**Post date:** [July 23, 2012, 9:30pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/33 "2012-07-23T21:30:31Z")

</div>

Never mind - I got it.

a[sup]n-1[/sup] is equal to (as you said) Ax999999999… + A.

Then everything falls into place. I never saw that because I did a sort of proof (to myself) by induction, working from the ones digit left. The ‘9’ part became obvious, but not the divisor part.

Thanks.

---

<div class="post-metadata">

**Author:** ![Spectre\_of\_Pithecanthropus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/spectre_of_pithecanthropus/32/12343_2.png) [@Spectre\_of\_Pithecanthropus](https://boards.straightdope.com/u/Spectre_of_Pithecanthropus)\
**Post date:** [July 24, 2012, 6:48pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/34 "2012-07-24T18:48:06Z")

</div>

> [@bup](#):
>
> 1. That the ‘9’ in any base (that is, the digit that is the largest single digit number, one less than the base itself) has the rule that, given a number, the ‘9’ divides that number if and only if it divides the sum of the digits of that number.
> 
> Most people know that in base 10, you can add the digits of a number to see if it’s divisible by 9. It also works for 7 in base 8 (octal), for 15 in base 16 (hex), etc.

I worked out a proof of this pattern, but this post is too small to contain it.

No, actually I’ve forgotten some of the details and would have to go over it again before I can offer it here. I do remember that one part of it is to show that x[sup]n[/sup] -1 is divisible by x -1 for any integral power of n.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 24, 2012, 6:57pm UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/35 "2012-07-24T18:57:40Z")

</div>

> [@Spectre\_of\_Pithecanthropus](#):
>
> No, actually I’ve forgotten some of the details and would have to go over it again before I can offer it here. I do remember that one part of it is to show that x[sup]n[/sup] -1 is divisible by x -1 for any integral power of n.

That’s easy: x[sup]n[/sup] - 1 = (x - 1)(1 + x + … + x[sup]n - 1[/sup]).

---

<div class="post-metadata">

**Author:** ![thirdname](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thirdname](https://boards.straightdope.com/u/thirdname)\
**Post date:** [July 25, 2012, 12:16am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/36 "2012-07-25T00:16:13Z")

</div>

Once in high school I was thinking about hypercubes. I don’t remember why; maybe I had run across _Flatland_ in the library or something. (I’ve never read it though.) I was wondering how they they know how many faces a tesseract has, or why a cube has 12 edges, or something. I realized that if you took a line segment, a square, and a cube, all with edges 1 unit long and put them on a graph, with one vertex at 0,0,0, then it was all just a counting problem, counting 1’s and 0’s. I figured out the formula in this section: [Hypercube - Wikipedia](http://en.wikipedia.org/wiki/Hypercube#Elements) of the Wikipedia articale on hypercubes.

---

<div class="post-metadata">

**Author:** ![Spectre\_of\_Pithecanthropus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/spectre_of_pithecanthropus/32/12343_2.png) [@Spectre\_of\_Pithecanthropus](https://boards.straightdope.com/u/Spectre_of_Pithecanthropus)\
**Post date:** [July 25, 2012, 5:54am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/37 "2012-07-25T05:54:10Z")

</div>

> [@ultrafilter](#):
>
> That’s easy: x[sup]n[/sup] - 1 = (x - 1)(1 + x + … + x[sup]n - 1[/sup]).

I found it easier to verify it for small values of _n_, and then recognize that

_(x[sup]n+1[/sup] - 1)_ can be rewritten as _x(x[sup]n[/sup] - 1) + (x - 1)_

so the divisibility _(x[sup]n[/sup] - 1)_ by _(x -1)_ holds for all _n_, from which it follows that kx[sup]n[/sup]/x - 1 yields a remainder of k. From there it’s not hard to show that, for example, 3126[sub]DEC[/SUB] is divisible by 9 because the sum of its digits is.

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [July 25, 2012, 5:59am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/38 "2012-07-25T05:59:52Z")

</div>

> [@ultrafilter](#):
>
> That’s easy: x[sup]n[/sup] - 1 = (x - 1)(1 + x + … + x[sup]n - 1[/sup]).

Easier still: x[sup]n[/sup] - 1 = (x - 1)P(x) + R where P(x) is some polynomial in x and R is the remainder. When x = 1, x[sup]n[/sup] - 1 = 0(P(x)) + R = R = 0. Hence x[sup]n[/sup] - 1 = (x - 1)P(x), as required.

---

<div class="post-metadata">

**Author:** ![Balance](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Balance](https://boards.straightdope.com/u/Balance)\
**Post date:** [July 25, 2012, 7:04am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/39 "2012-07-25T07:04:25Z")

</div>

Formulas are a dime a dozen. I come up with them, use them, and generally forget them all the time. They occupy me when I’m bored with something tedious, and tend to be too specific to what I’m doing to be worth remembering. I can’t think of any that really stand out–maybe the one I came I came up with to calculate time saved by increasing average driving speed; I’d have to reconstruct it now, but its purpose was to talk myself out of speeding more on a really long and boring drive.

Not a formula, but I unwittingly reinvented Newton’s Method approximation when I was a lad, and made small forays into limit theory and some related basic concepts of calculus before I found out what calculus was. I was a little disappointed when I reached my high school Intro to Calc class and found that someone had already done the interesting bits.

---

<div class="post-metadata">

**Author:** ![DragonAsh](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@DragonAsh](https://boards.straightdope.com/u/DragonAsh)\
**Post date:** [July 25, 2012, 9:31am UTC](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242/40 "2012-07-25T09:31:31Z")

</div>

> [@ultrafilter](#):
>
> At some point it gets hard to get too specific and retain anonymity.

Well played sir. Well played.

I recall feeling quite pleased with myself for coming up with a proof that 0.99 repeating was = 1, only to realize shortly after that it was hardly original…

[Previous page](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242.md?page=1)

[Next page](https://boards.straightdope.com/t/math-formulas-you-figured-out-with-no-help/628242.md?page=3)
