![]() |
|
|
#12 |
|
"Lucan"
Dec 2006
England
2·3·13·83 Posts |
Yes. But representing zero might lead to some confusion
Last fiddled with by davieddy on 2007-12-04 at 15:55 |
|
|
|
|
|
#13 |
|
"William"
May 2003
New Haven
44768 Posts |
As always in mathematics, it comes down to the definitions. And mathematicians are always looking at variations in the definitions. In this case, the question is whether the Base b number system is defined as
A. The value represented is sum anbn using the digits 0 to b-1. B. The value represented is sum anbn using the minimal set of non-negative digits. Definition B permits both "Base 1" and "Base Golden Ratio." Definition A does not. http://en.wikipedia.org/wiki/Golden_ratio_base Dropping the "non-negative" also permits balanced representations (digits from -b/2 to +b/2) that are important in Prime95 and other FFT multiplications. |
|
|
|
|
|
#14 | |
|
Feb 2007
24·33 Posts |
Quote:
But anyway I think it is irrelevant, since the puzzle said "least even ..." so it will always be even in base 1 since of the form 2 x parity(symbol) which is a multiple of 2 and thus even. Also, from base 3 on the answer is always even (and the same for base 2b and 2b+1 - or not ?) somehow inefficient PARI code follows: digitsum(n,b=10,s)=n=[n];while(n=divrem(n[1],b),s+=n[2]);s leasteven(Bmax,n=1)=until(!n++,for(b=2,Bmax,digitsum(n,b)%2 & next(2));return(n)) t=1; for( b=2,100, print( b,": ",t=leasteven(b,t))) |
|
|
|
|
|
|
#15 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
23·3·5·72 Posts |
what program did u use kevin
|
|
|
|
|
|
#16 |
|
Aug 2002
Ann Arbor, MI
433 Posts |
I just hacked together something in Mathematica. Didn't take much time to optimize it, or make it particularly clear. Seeing as the 1-100 case is still running, it might've been worth taking the time to do that.
a=0;For[b=1,a==0,b++,d=0;For[i=2,i<51,i++,c=Mod[Total[IntegerDigits[b,i]],2];If[c==1,d=1;Break[]]];If[d==0,a=1;Print[b]]] You're testing numbers b in base i, c is the parity of the sum of digits, and a makes the program stop when you get a solution. |
|
|
|
|
|
#17 |
|
May 2004
New York City
2·29·73 Posts |
Did the value for 100 ever get computed?
|
|
|
|
|
|
#18 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
the one base that gets in the way is base 2 in base b, for natural b, 2 or 0 is even and no other digits need to be added it's only in base 2 that it messes it up. Last fiddled with by science_man_88 on 2015-02-13 at 22:39 |
|
|
|
|
|
|
#19 |
|
May 2004
New York City
423410 Posts |
Unary should always be represented by digits of value 1 not 0.
This way the value of the representation of any number is obtained by adding the digits, with the multiplicative value of each place value taken into account. In unary, every place has value 1 (instead of b^n for other bases b), so n = 111.....1 = 1*1 + 1*1 + ... + 1*1 represents any positive integer n. (Zero is not well-represented in unary. No surprise. That's why we invented decimal and binary.) Unlike the Peano axioms where zero and successor are used (which is fine) or Russell and Whitehead's axiomatic construction, defining unary as a sequence of zeroes just to be consistent with reverse induction (ternary uses 2,1,0, binary uses 1,0, so unary should use only 0) would be a "foolish consistency". One (versus zero) is the better choice. |
|
|
|
|
|
#20 | |
|
Jun 2014
23×3×5 Posts |
Quote:
For bases 1 to 100, I did a check up to 232 without finding anything. Last fiddled with by legendarymudkip on 2015-02-15 at 23:30 |
|
|
|
|
|
|
#21 |
|
Dec 2012
2×139 Posts |
Up to 10^10, I found a few numbers that passed all bases up to but not including base 62. This is the highest I've found.
legendarymudkip, what script are you using and would you mind benchmarking it for me? How long does it take to test 10^10 to 10^10+10^7? I am wondering how terrible my program is. Last fiddled with by Jayder on 2015-02-22 at 04:38 |
|
|
|
|
|
#22 |
|
Jun 2014
23·3·5 Posts |
For bases 1-62, it took about an hour to get to 10^10.
For bases 1-100, I'd assume about 1.5 hours. My code is probably quite slow, but I don't know. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many digits? | kokakola | Information & Answers | 23 | 2009-11-03 05:08 |
| 15M Digits - Just For Fun | storm5510 | Math | 7 | 2009-09-08 04:14 |
| All 10 Digits | davar55 | Puzzles | 5 | 2007-06-18 15:06 |
| 140+ digits which is better | marthamm | GMP-ECM | 4 | 2006-01-25 17:32 |
| Exponential Digits | ndpowell | Math | 18 | 2005-07-15 22:31 |