# math question

**URL:** <https://boards.straightdope.com/t/math-question/77167>\
**Category:** Factual Questions\
**Created:** [August 20, 2001, 4:27pm UTC](https://boards.straightdope.com/t/math-question/77167 "2001-08-20T16:27:37Z")\
**Posts on this page:** 7\
**Page:** 4

<div class="post-metadata">

**Author:** ![muttrox](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@muttrox](https://boards.straightdope.com/u/muttrox)\
**Post date:** [August 24, 2001, 7:21pm UTC](https://boards.straightdope.com/t/math-question/77167/61 "2001-08-24T19:21:26Z")

</div>

I just gotta say, if the answer turns out to be 19! factorial or something along those lines, I will laugh my ass off. Not that I expect it to happen, but it would be funny.

---

<div class="post-metadata">

**Author:** ![DaveW](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@DaveW](https://boards.straightdope.com/u/DaveW)\
**Post date:** [August 24, 2001, 7:42pm UTC](https://boards.straightdope.com/t/math-question/77167/62 "2001-08-24T19:42:01Z")

</div>

**Pink cheeks continued…**

How the heck did I get the right answer for N=5? Ah, there doesn’t seem to be any ‘legal’ way to put 2, 3, and 4 in between 1 and 5 (or 3, 4, and 5 between 1 and 2), so I lucked out on that one. Hmmm, what about N=7?

1-3-5-2-6-4-7

Okay, it’s not just the even-numbered N’s that’ll be a problem, then, but anything above N=5. Shoot.

Oh, well. I’ll redo the program tonight, probably. Just thinking about this has shown me a whole slew of optimizations I hadn’t thought of before. Besides which, my home machine is faster, anyway. It’ll probably be just 2,000 years instead of 5,000. 🙂

---

<div class="post-metadata">

**Author:** ![RTFirefly](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RTFirefly](https://boards.straightdope.com/u/RTFirefly)\
**Post date:** [August 24, 2001, 7:58pm UTC](https://boards.straightdope.com/t/math-question/77167/63 "2001-08-24T19:58:55Z")

</div>

Being right on the first try isn’t exactly one of my strengths either, Dave. There was one proof in my dissertation - for a result I really needed, too - where I thought I’d proved it **five** different times, and every time I found a hole. (I finally nailed it for real on the sixth try, thank goodness.)

My wife got to where, when she heard me say “Oh shit!” for no apparent reason, she took it for granted that my latest ‘proof’ had unravelled yet again.

---

<div class="post-metadata">

**Author:** ![DaveW](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@DaveW](https://boards.straightdope.com/u/DaveW)\
**Post date:** [August 25, 2001, 6:15am UTC](https://boards.straightdope.com/t/math-question/77167/64 "2001-08-25T06:15:52Z")

</div>

**Brute-Force, round two** :

N=5: 1 out of 12 (8.33%)  
N=6: 3 out of 60 (5.00%)  
N=7: 23 out of 360 (6.39%)  
N=8: 177 out of 2,520 (7.02%)  
N=9: 1,553 out of 20,160 (7.70%)  
N=10: 14,963 out of 181,440 (8.25%)  
N=11: 157,931 out of 1,814,400 (8.70%)  
N=12: 1,814,453 out of 19,958,400 (9.09%)  
N=13: 22,566,237 out of 239,500,800 (9.42%)  
N=14: 302,267,423 out of 3,113,510,400 (9.71%)

Now, coming at this whole thing backwards, I was playing with the above numbers trying to see some relationship between them that could be ‘exploited’ into providing an equation. Given some function, f(N), which gives the number of good **curwin** -style solutions, it became quickly obvious that for N above 7, f(N) = (N-1)\*f(N-1) + some fraction of f(N-1). For N greater than 8, the fraction one must add gets smaller (at N=14, it’s about 0.3947).

Dunno if this helps or hinders any of you out there making a serious attempt at the problem. I thought it might provide a clue of some sort.

Oh, **RTFirefly** , thanks for the sympathy, but I doubt I’ll live this down (in my own head, at least). It was, after all, such a rookie mistake to make (and I’ve been doing this for 23 years now).

---

<div class="post-metadata">

**Author:** ![DaveW](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@DaveW](https://boards.straightdope.com/u/DaveW)\
**Post date:** [August 26, 2001, 4:58am UTC](https://boards.straightdope.com/t/math-question/77167/65 "2001-08-26T04:58:00Z")

</div>

N=15: 4,340,478,951 out of 43,589,145,600 (9.96%)

This took almost 4 hours to generate. If my guesstimation equation holds true, N=16 should take another 30 or so hours (well, 19 hours from _now_). N=17 should take another 16\*30, or 480 hours (20 days). N=18 would then take another 340 days. N=19 another 17 years, 8 months. And N=20 an additional 336 years. I’ve assuredly made some speed increases here, and I _might_ let it run and find N=16. But after that, I’m definitely going to give the computer a rest, and turn it off.

---

<div class="post-metadata">

**Author:** ![DaveW](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@DaveW](https://boards.straightdope.com/u/DaveW)\
**Post date:** [August 27, 2001, 3:49am UTC](https://boards.straightdope.com/t/math-question/77167/66 "2001-08-27T03:49:59Z")

</div>

Shoot. Strange problem happened which forced me to reboot (keystrokes kept going to the wrong applications - for example, when typing my username here on SDMB, the D, A, and V would get entered just fine, but I’d hit the E and another copy of Windows Explorer would launch - anyone else ever have that happen under Win98?). Anyway, I’m not going to worry about N=16 anymore. Either someone’ll find an equation or someone won’t. I don’t see a lot of practical use for “ **curwin** ’s number,” and judging by the lack of prior work, I don’t think anyone else does, either.

---

<div class="post-metadata">

**Author:** ![curwin](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@curwin](https://boards.straightdope.com/u/curwin)\
**Post date:** [August 27, 2001, 8:17am UTC](https://boards.straightdope.com/t/math-question/77167/67 "2001-08-27T08:17:23Z")

</div>

> [@](#):
>
> \*Originally posted by DaveW \*  
> I don’t see a lot of practical use for “ **curwin** ’s number,”

You don’t know how often I hear that…

[Previous page](https://boards.straightdope.com/t/math-question/77167.md?page=3)
