Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > OT: Errors in M...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 3765 of 4173
Post > Topic >>

OT: Errors in Marcel's "Perfect Number code" examples?

by "Rod Pemberton" <do_not_have@[EMAIL PROTECTED] > Feb 14, 2008 at 07:08 PM

Marcel,

I've got a couple of problems with the examples on your "Perfect Number
code" webpage:
http://home.iae.nl/users/mhx/perfect.html

You state:

"The perfect number A can be characterized by a unique number n, where A =
2^n * (2^n-1 - 1). "

Given one of the prior numerical examples:

  "8,128 = 2^6 * (2^7 - 1)"

I.e., 2^6 is 2^n, so n=6, correct?:

    1984 = 2^6 * (2^(6-1) - 1)
    1984 = 2^6 * (2^5 - 1)

I see 2^5-1 instead of 2^7-1.  Shouldn't the A equation be?:

  A = 2^n * (2^(n+1) - 1)


You also state:

"To check A, we must find the sum of all of the divisors of 2^n * (2^n-1 -
1), or, equivalently,

    [1] x1 = the sum of the divisors of 2^n
          +
    [2] x2 = the sum of the divisors of (2^n-1 - 1).

According to Pythagoras, x1 = 2^n-1."


If A=8128, then n=6, so x1=2^6-1 equals 63.  Hard to figure how
A=8128=x1+x2
with x1=63...  I.e., x2 must be large for A=8128 if x1 is small.  But, x2
is
small since x2 is 128, i.e., sum of all divisors of 127.  x2=128 is 1 plus
the prime: 127=2^((n=6)+1)-1, correct?  Are you sure summing x1 and x2 is
equivalent?  Multiplying them doesn't seem to work either...


Rod Pemberton
 




 10 Posts in Topic:
OT: Errors in Marcel's "Perfect Number code" examples?
"Rod Pemberton"  2008-02-14 19:08:50 
Re: OT: Errors in Marcel's "Perfect Number code" examples?
Coos Haak <chforth@[EM  2008-02-15 18:24:16 
Re: OT: Errors in Marcel's "Perfect Number code" examples?
Coos Haak <chforth@[EM  2008-02-15 18:48:29 
Re: OT: Errors in Marcel's "Perfect Number code" examples?
Albert van der Horst <  2008-02-16 11:01:19 
Re: OT: Errors in Marcel's \qPerfect Number code\q examples?
mhx@[EMAIL PROTECTED] (M  2008-02-16 12:38:19 
Re: OT: Errors in Marcel's \qPerfect Number code\q examples?
"David N. Williams&q  2008-02-16 08:06:33 
Re: OT: Errors in Marcel's \qPerfect Number code\q examples?
Albert van der Horst <  2008-02-22 15:17:34 
Re: OT: Errors in Marcel's "Perfect Number code" examples?
Coos Haak <chforth@[EM  2008-02-16 13:51:50 
Re: OT: Errors in Marcel's \qPerfect Number code\q examples?
mhx@[EMAIL PROTECTED] (M  2008-02-15 21:09:53 
Re: OT: Errors in Marcel's "Perfect Number code" examples?
Albert van der Horst <  2008-02-22 15:47:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:15:42 CDT 2008.