mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2007-12-04, 15:52   #12
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2·3·13·83 Posts
Default

Quote:
Originally Posted by axn1 View Post
How do you represent something in base 1? 0, 00, 000???
Yes. But representing zero might lead to some confusion

Last fiddled with by davieddy on 2007-12-04 at 15:55
davieddy is offline   Reply With Quote
Old 2007-12-04, 16:15   #13
wblipp
 
wblipp's Avatar
 
"William"
May 2003
New Haven

44768 Posts
Default

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.
wblipp is offline   Reply With Quote
Old 2007-12-06, 16:10   #14
m_f_h
 
m_f_h's Avatar
 
Feb 2007

24·33 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
http://en.wikipedia.org/wiki/Unary_numeral_system
8 (base 10) is 11111111 (base 1).
I agree that this cannot be used in conjunction with "digit sum" since the tickmarks are NOT digits 1 (which follows the digits 0 which is always the first one) but "tally marks" as is explicitely written on that wikipedia page.

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)))
m_f_h is offline   Reply With Quote
Old 2007-12-06, 18:41   #15
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23·3·5·72 Posts
Default

what program did u use kevin
henryzz is offline   Reply With Quote
Old 2007-12-07, 00:19   #16
Kevin
 
Kevin's Avatar
 
Aug 2002
Ann Arbor, MI

433 Posts
Default

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.
Kevin is offline   Reply With Quote
Old 2015-02-13, 17:21   #17
davar55
 
davar55's Avatar
 
May 2004
New York City

2·29·73 Posts
Default

Did the value for 100 ever get computed?
davar55 is offline   Reply With Quote
Old 2015-02-13, 22:39   #18
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
http://en.wikipedia.org/wiki/Unary_numeral_system
8 (base 10) is 11111111 (base 1). Often written as tick marks to count things as they happen, with separators every 5.
Back to the question, since it must have an even sum of digits in base 1, it must be an even number (not really sure where to go from there...I just noticed this trivial thing and thought I'd point it out).
0 = even no ?

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
science_man_88 is offline   Reply With Quote
Old 2015-02-15, 13:29   #19
davar55
 
davar55's Avatar
 
May 2004
New York City

423410 Posts
Default

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.
davar55 is offline   Reply With Quote
Old 2015-02-15, 22:37   #20
legendarymudkip
 
legendarymudkip's Avatar
 
Jun 2014

23×3×5 Posts
Default

Quote:
Originally Posted by davar55 View Post
In unary, every place has value 1 (instead of b^n for other
bases b)
Rather, in unary, every place still has value bn, as 1n = 1 for any n.

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
legendarymudkip is offline   Reply With Quote
Old 2015-02-22, 04:36   #21
Jayder
 
Jayder's Avatar
 
Dec 2012

2×139 Posts
Default

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
Jayder is offline   Reply With Quote
Old 2015-02-22, 20:58   #22
legendarymudkip
 
legendarymudkip's Avatar
 
Jun 2014

23·3·5 Posts
Default

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.
legendarymudkip is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 03:35.


Sat Jul 17 03:35:51 UTC 2021 up 50 days, 1:23, 1 user, load averages: 1.73, 1.89, 1.69

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.