Python Forum
Perfect Number formula in Python Question an Mersenne Numbers
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perfect Number formula in Python Question an Mersenne Numbers
#1
Hi all,
Great thanks for this site it helps. Anyway I have found a direct relationship with perfect numbers to Mersenne Numbers. For Instance 6 is a perfect Number and it is divisible by two which equals 3. My current formula is looking at exponents of the number 4. If you want to find Mersenne numbers than put an exponent on 4 double the number and substract 1. However the exponents are staggered at times. but if you do it enough you will land a Mersenne number.
28 is a perfect number divide it by 7 and you get 4.

Lets look at 4^3=64 next 2*64-1=127
Lets look at 4^6=4096 next 2*4096-1=8191
try 4^15

I need some code that will process large perfect numbers. Thanks for reading :)
Reply


Messages In This Thread
Perfect Number formula in Python Question an Mersenne Numbers - by Pleiades - Apr-24-2018, 07:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Are there errors in the code for my coin toss systems? Matlibplot is too perfect . Coolkat 0 379 Nov-13-2023, 11:54 AM
Last Post: Coolkat
  find random numbers that are = to the first 2 number of a list. Frankduc 23 3,257 Apr-05-2023, 07:36 PM
Last Post: Frankduc
  Divide a number by numbers in a list. Wallen 7 8,068 Feb-12-2022, 01:51 PM
Last Post: deanhystad
  Python “Formula” Package: How do I parse Excel formula with a range of cells? JaneTan 1 2,692 Jul-12-2021, 11:09 AM
Last Post: jefsummers
  How do I read in a Formula in Excel and convert it to do the computation in Python? JaneTan 2 2,664 Jul-07-2021, 02:06 PM
Last Post: Marbelous
  Question about formula implementation in general format Alienspecimen 0 1,669 Mar-01-2021, 08:39 PM
Last Post: Alienspecimen
  Perfect numbers Vidar567 2 1,921 Nov-23-2020, 10:29 PM
Last Post: Vidar567
  Applying Moving Averages formula to a number lynnette1983 1 2,044 Sep-29-2020, 10:21 AM
Last Post: scidam
  Runs perfect in Python but fails to print last statement when converted to .exe. Help sunil422 3 2,840 Aug-13-2020, 01:22 PM
Last Post: deanhystad
  Need help to identify Mersenne Primes, I do need a search pattern. Pleiades 0 1,932 Dec-03-2019, 11:05 PM
Last Post: Pleiades

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020