Specifically for
coldtortuga
Jan. 1st, 2006 01:56 pmA variation on a previous theme:
| Base | Number | Number in Base 10 |
|---|---|---|
| 2 | 12 | 1 |
| 3 | 23 | 2 |
| 4 | 3124 | 54 |
| 5 | 4135 | 108 |
| 6 | 4126 | 152 |
| 7 | 651427 | 16200 |
| 8 | 76251348 | 2042460 |
| 9 | 82715369 | 4416720 |
| 10 | 986731210 | 9867312 |
| Still churning - these O(nn) algorithms really soak up the CPU time... (I later hit Ctrl-C, so all numbers after this point are from | ||
| 11 | A9876241311 | 2334364200 |
| 12 | B935217612 | 421877610 |
| 13 | CBA9584721313 | 1779700673520 |
no subject
Date: 2006-01-02 02:20 pm (UTC)http://www.research.att.com/~njas/sequences/
no subject
Date: 2006-01-02 07:28 pm (UTC)no subject
Date: 2006-01-03 02:12 pm (UTC)From the homepage, choose submit a sequence; it takes you to the following page:
http://www.research.att.com/~njas/sequences/Submit.html
After that, it's fairly self-explanatory.
Just make sure your explanation is clear so that others could replicate your work.
Be sure to check the "hard" box at the bottom since it is a hard sequence to calculate (computationally).
Then you'll have your own A number!
Good luck. If you'd like to run your submission past me first, feel free.
no subject
Date: 2006-01-05 05:16 pm (UTC)no subject
Date: 2006-01-05 06:25 pm (UTC)Try all permutations of n letters, in reverse lexicographic order, then all permutations of all size n-1 subsets in some appropriate order. The only issue is coding all of that up. The reverse lexicographic order thing isn't too bad, but doing all of the subsets and pulling off the next candidate in the right order is a tricky bit of combinatorial coding that I would prefer to avoid. Using some heuristics,
I suppose one could make a heap of generators that would yield the front of the lowest generator on the heap. In the worst case there would be O(n!) generators, but that's only O(n lg n) to pull the top one off the heap, and the answer would probably be found before the heap got to be too large. That would be memory intensive, but not too bad otherwise. Heapification is pretty quick... I bet I could use this technique to find the sequence up to base 14, maybe!
But it sounds like a whole lot of work for just 4 more terms. I prefer to throw CPU at the problem and then walk away if that doesn't suffice. Optimizing non-polynomial algorithms just isn't very fun. Finding a polynomial algorithm is, and so is proving a problem impossible. But I don't see how this problem is NP complete (it seems over-specified, which makes reductions difficult), it doesn't seem like it has a polynomial solution, and number theory was always my most dicey section in discrete math.
no subject
Date: 2006-01-05 06:53 pm (UTC)no subject
Date: 2006-01-10 09:46 pm (UTC)In base n, start with the set of usable digits D={1, ..., n-1}. For each non-empty subset d of D (in Gray-code order, 'cause I already had a Gray-code subset generator), I find and test all the permutations of d (in the order given by Heaps' algorithm, 'cause I already had Heaps coded up). Gray-code + Heaps' algo does not the most efficient search-order make, but it's not too shabby.
The number of candidates to test in base n is given by A007526 which grows like e*n!
no subject
Date: 2006-01-09 07:49 pm (UTC)(I'm just now catching up on lj after 2 weeks at my parents' home in Alaska. They only have internet connectivity via the phone line, e.g., "[ring ring ring] Hey Jen, are you near your mom's computer? Could you look up the World Cup groups and read them off to me, pretty pretty please??")
My code spat out the base-eleven answer in a few minutes (A9876241311 = 233436420010) but it's been cranking for a couple hours now on base-twelve. The numbers are big enough to require Python "long" integers, which are waaaaay slower than native-hardware integers; I probably need a thorough re-writing of my generators to avoid so many multiplications and function-calls.
no subject
Date: 2006-01-09 09:21 pm (UTC)no subject
Date: 2006-01-09 10:44 pm (UTC)no subject
Date: 2006-01-09 10:48 pm (UTC)no subject
Date: 2006-01-10 02:54 pm (UTC)no subject
Date: 2006-02-13 03:51 am (UTC)