Bitcoin Forum
May 05, 2024, 03:48:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Number of Merits generated (mathematically)  (Read 500 times)
r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 20, 2018, 04:50:52 AM
Merited by Welsh (2), TMAN (2), DdmrDdmr (1), The Cryptovator (1), paxmao (1), stingers (1), Piggy (1), vlad230 (1), HiDevin (1)
 #1

  
Quote
There are 120 merit sources with a total merit generation of up to 23045 sMerit per 30 days

When 1 Merit is given it generate .5 sMerits. I found many times user trying to calculate like from 23045 will create 11522 and then 5761  and so on.
But they are not able to reach the number at end (after all the sum of halving merits).

So I decided to calculate it Mathematically. Since number of smerits will halved every time and 23045 is not perfectly divisible by 2.
We need to represent 23045 as sum of numbers that can be easily divisible by 2 at every stage till we reach Merit 1 .

In other words, first we need to put 23045 as sum of numbers in power of 2

23045 = 16384+4096+2048+512+4+1
23045= 214 + 212 + 211 + 29 +22 +20

Now we start with  214 i.e  16384 and check how many merits it can generate.

16384 + 8192   + 4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =  32767
  
Similarly, for other terms
4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =                              8191
2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =                                          4095
512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =                                                                1023
4 + 2 + 1 =                                                                                                                                7
1=                                                                                                                                              1

So sum of these number will be  32767+8191+4095+1023+7+1=46084
Since we have 6 number that make up to the sum of 23045 , so  we get 6/2 =3. and further 3/2 =1
You might be wondering why I did not use same formula for 6 (22+21 ) because 6 is converted to merit ,it is not smerit anymore.

So in total 46084+3+1 = 46088 Merit will be generated Mathematically.

This all calculation is derived by using the fundamentals of Geometric Progression and sequence, their nth term and sum till the nth term.

Some links to understand Geometric Progression are here  and  here and here

Tabular Data of the Calculation



Hope you all enjoyed the calculation.

PS: 46088  is mathematically feasible and maximum limit that can be generated if we used all source merit but actual number can be less or more because many users will left with residual smerits but this residual smerit can be used next time when they receive a single merit or odd number of merits.




I am alive
1714880929
Hero Member
*
Offline Offline

Posts: 1714880929

View Profile Personal Message (Offline)

Ignore
1714880929
Reply with quote  #2

1714880929
Report to moderator
1714880929
Hero Member
*
Offline Offline

Posts: 1714880929

View Profile Personal Message (Offline)

Ignore
1714880929
Reply with quote  #2

1714880929
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714880929
Hero Member
*
Offline Offline

Posts: 1714880929

View Profile Personal Message (Offline)

Ignore
1714880929
Reply with quote  #2

1714880929
Report to moderator
1714880929
Hero Member
*
Offline Offline

Posts: 1714880929

View Profile Personal Message (Offline)

Ignore
1714880929
Reply with quote  #2

1714880929
Report to moderator
LoyceMobile
Hero Member
*****
Offline Offline

Activity: 1655
Merit: 687


LoyceV on the road. Or couch.


View Profile WWW
September 20, 2018, 04:57:37 AM
Merited by Jet Cash (2)
 #2

All these calculations to come up with 46088 instead of 46090?

LoyceV on the road Advertise here for LN Don't deal with this account (exception)
Advertise here for LN Tip my kids Exchange LN (20 coins). 1% fee. No KYC <€50/month
My useful topics: Meritt & Trust & Moreee Art Advertise here for LN Foru[url=https://bitcointalk.org/m
HiDevin
Member
**
Offline Offline

Activity: 226
Merit: 30

so.. hru?


View Profile
September 20, 2018, 04:58:13 AM
 #3

So what you are saying is that a 46088 merits can be generated every month? ( the maximum )

Thanks for sharing this to be honest, somewhat useful info Smiley
r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 20, 2018, 05:11:34 AM
 #4

All these calculations to come up with 46088 instead of 46090?
 

I did manual calculation for 50 sMerits and I come to result of 98. So I am not doubting the mathematics and my formula.

Just to point out that there is some difference if you calculate from sMerits vs Merits that I pointed in my OP

Quote
You might be wondering why I did not use same formula for 6 (22+21 ) because 6 is converted to merit ,it is not smerit anymore.

I am alive
TeQuiero
Member
**
Offline Offline

Activity: 120
Merit: 38


View Profile
September 20, 2018, 05:44:03 AM
Last edit: September 20, 2018, 05:55:54 AM by TeQuiero
 #5

Now we start with  214 i.e  16384 and check how many merits it can generate.
16384 + 8192   + 4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =  32767

Your topic reminds me of the old days in high school. Smerits are generated like radioactive decay and above sum is a geometric progression
I still remember that there's a general method to calculate this sum:

Assume that S =           16384 + 8192   + 4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1
                      =           214 + 213 + 212 + ... + 21 +20 (*)
then          2S  = 215 + 214 + 213 + ... +22 +21           (**)

(**) - (*) side by side, then S = 215-1 =  32767

Btw, it's an interesting discovery OP.

███    TWITTER     █████████████████ MOCKTAIL ████████████████████     WHITEPAPER     ███
███       ANN                  ██████      FIRST SEMI-FUNGIBLE TOKEN ON BSC     █████    SMART CONTRACT    ███
███  TELEGRAM  █████████████████     SWAP      ███████████████████       PANCAKE      ███
r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 20, 2018, 06:28:23 AM
 #6

Now we start with  214 i.e  16384 and check how many merits it can generate.
16384 + 8192   + 4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1 =  32767

Your topic reminds me of the old days in high school. Smerits are generated like radioactive decay and above sum is a geometric progression
I still remember that there's a general method to calculate this sum:

Assume that S =           16384 + 8192   + 4096 + 2048 +1024 + 512 + 256 + 128 + 64 +32 + 16 + 8 + 4 + 2 + 1
                      =           214 + 213 + 212 + ... + 21 +20 (*)
then          2S  = 215 + 214 + 213 + ... +22 +21           (**)

(**) - (*) side by side, then S = 215-1 =  32767

Btw, it's an interesting discovery OP.

 I know, I can directly use the formula, but I just wanted it to be in laymen terms, where everybody can visualize each divison and the sum.

I like the analogy of sMerits vs radioactive decay but only difference is that they do not produce any unwanted product (like radiations)

I am alive
Jet Cash
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


View Profile WWW
September 20, 2018, 08:39:35 AM
 #7

All these calculations to come up with 46088 instead of 46090?

That may be my fault. I had a couple of rusty merits in the bottom of my bag. I've given them to you, so that we can keep the record straight. Smiley

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
DdmrDdmr
Legendary
*
Offline Offline

Activity: 2310
Merit: 10758


There are lies, damned lies and statistics. MTwain


View Profile WWW
September 20, 2018, 08:50:12 AM
 #8

<...>
It is interesting to see the potential maximum that can be derived from a single month’s Merit Source total aggregate. When I looked at it some time ago, I used a simpler approach:

-   For a given integer number (not too small), the aggregate of itself and all its halvings is roughly double the initial number (i.e. 23.045 sMerits generate roughly a potential maximum of 46.090 sMerits aggregating all the halvings).

-   The number of times the halving can be performed is CEILING(LOG(Number;2);1)-1 (base 2 logarithm).

-   The result of each division generates =FLOOR(Number/2;1) sMerits, where Number is the number of sMerits that resulted from the previous division.

The quick way of seeing it, with a small margin of error, is simply as double the initial figure.

Note: I’m not quite sure why you aggregate the extra 4 sMerits to the 46.084 based on the number of decomposed initial numbers (I mean the reason behind).
StatesManG
Copper Member
Member
**
Offline Offline

Activity: 462
Merit: 10


View Profile
September 20, 2018, 08:55:27 AM
 #9

i still need to do more to really understand this calculations. hope i find more useful information

► ARCS ◄ ♦ ARCS - The New World Token (*Listed on KuCoin) ♦ ► ARCS ◄
───●✦●───●✦●───●✦●───●✦●───●✦●─[   Bounty Detective   ]─●✦●───●✦●───●✦●───●✦●───●✦●───
Website◂ | ▸Twitter◂ | ▸Medium◂ | ▸Telegram◂ | ▸Whitepaper
paxmao
Legendary
*
Offline Offline

Activity: 2198
Merit: 1584


Do not die for Putin


View Profile
September 20, 2018, 08:55:37 AM
Merited by Jet Cash (2)
 #10

All these calculations to come up with 46088 instead of 46090?

The geometric sum formula assumes an infinite series of descending terms, which is not the case as the minimum merit is 1. That should explain discrepancies IMO.

r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 20, 2018, 05:54:13 PM
Last edit: September 20, 2018, 06:09:40 PM by r1s2g3
 #11

Note: I’m not quite sure why you aggregate the extra 4 sMerits to the 46.084 based on the number of decomposed initial numbers (I mean the reason behind).



23045= 214 + 212 + 211 + 29 +22 +20

23045 is used as sum of 6 numbers and each number (or series) ended at 1. Practically 1 Merit is not useful to generate any Merit but when 6 series (each ended with 1) then you got extra 6 Merits, These 6 Merits can produce 4 full merits leaving the redundant smerits.

All these calculations to come up with 46088 instead of 46090?

The geometric sum formula assumes an infinite series of descending terms, which is not the case as the minimum merit is 1. That should explain discrepancies IMO.

Thanks Paxmao, making it more clear.

TeQuiero also explained how the sum in GP done and I already given links to the GP tutorials in OP. 46090  is no way correct.

Any way , after calculating with few more values, I got the generalized formula  for Merit generation from sMerits.

X (smerits)=> 2X - 1 Merits  (X >0, and X can be expressed as 2y like 2,4,8, 16 and so on.)

X(smerits)=> 2X-2   Merits  (X >0, and X can not be expressed as 2y  like 6,7 ,12 etc..)




All these calculations to come up with 46088 instead of 46090?

If 23045 sMerits generate 46090 Merits. And these 46090 Merits will again able to  generate 23045  sMerits. Then cycle can simply go on.
We know already, this type of cycle is not going on ,so even without using any mathematics I can say by practical experience, it is absolutely incorrect.

I am alive
DdmrDdmr
Legendary
*
Offline Offline

Activity: 2310
Merit: 10758


There are lies, damned lies and statistics. MTwain


View Profile WWW
September 20, 2018, 07:03:58 PM
 #12

<...>23045 is used as sum of 6 numbers and each number (or series) ended at 1. Practically 1 Merit is not useful to generate any Merit but when 6 series (each ended with 1) then you got extra 6 Merits, These 6 Merits can produce 4 full merits leaving the redundant smerits.<…>
That’s what I figured. But let’s say that you gave each of your numbers (the six you split the original into) to a different person, and each person sMerits another non-intersecting person in a linear manner. As you say, there will be six people with one Merit at the leaf of each linear chain. What we cannot do is then scoop those six units together, generate a batch of 6 sMerits, and generate four more after two steps. What I mean by this is that the last part of the algorithm does not seem to apply in practice to sMerits, because we cannot scoop the ones together...
r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 21, 2018, 12:03:36 PM
 #13

<...>23045 is used as sum of 6 numbers and each number (or series) ended at 1. Practically 1 Merit is not useful to generate any Merit but when 6 series (each ended with 1) then you got extra 6 Merits, These 6 Merits can produce 4 full merits leaving the redundant smerits.<…>
That’s what I figured. But let’s say that you gave each of your numbers (the six you split the original into) to a different person, and each person sMerits another non-intersecting person in a linear manner. As you say, there will be six people with one Merit at the leaf of each linear chain. What we cannot do is then scoop those six units together, generate a batch of 6 sMerits, and generate four more after two steps. What I mean by this is that the last part of the algorithm does not seem to apply in practice to sMerits, because we cannot scoop the ones together...


I agree, I think we will end up in much larger leaf Nodes, Everybody who has earned odd number of Merit has  potential .5 sMerit in unusable form.
46088 just define max potential that can be achieved by using all ideal conditions.

I think , if Theymos decide to decay the sMerits in future, instead of decaying it , it should be re assigned to Merit Source.

I am alive
Findingnemo
Hero Member
*****
Offline Offline

Activity: 2324
Merit: 758


Bitcoin = Financial freedom


View Profile
September 21, 2018, 06:02:15 PM
 #14

But why all those merits were not shared every month? even half of them are not shared yet per month because we still have lot of airdropped merits under circulation so merit sources need to be more active at finding the posts? or there are not enough worthy posts to get merits. Huh

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
View ArchiveReport to moderator
r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
September 24, 2018, 06:45:56 PM
 #15

But why all those merits were not shared every month? even half of them are not shared yet per month because we still have lot of airdropped merits under circulation so merit sources need to be more active at finding the posts? or there are not enough worthy posts to get merits. Huh

 You can refer to Merit Awarded Data here.
 I think you are wrong in claiming that Merit Source are not distributing Merits. Majority of air dropped merits were exhausted in a month.

To get the ideal value , Only Merit source are not responsible. If you got Merits and you did not merited others, you just stopped a part of chain and further generation of merits.

I am alive
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16596


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
October 01, 2018, 06:51:38 PM
 #16

All these calculations to come up with 46088 instead of 46090?
 
I did manual calculation for 50 sMerits and I come to result of 98. So I am not doubting the mathematics and my formula.
My point is: just double the total amount of sMerit, and you're (almost) at the right number. You end up 2 sMerits lower. But it might just as well be send to users who already had 0.5 sMerit, meaning a few more sMerit becomes available.
Just doubling it makes the calculations much easier, and the rounding depends on various circumstances anyway.

r1s2g3 (OP)
Sr. Member
****
Offline Offline

Activity: 742
Merit: 395


I am alive but in hibernation.


View Profile
October 02, 2018, 04:59:48 AM
 #17

All these calculations to come up with 46088 instead of 46090?
 
I did manual calculation for 50 sMerits and I come to result of 98. So I am not doubting the mathematics and my formula.
My point is: just double the total amount of sMerit, and you're (almost) at the right number. You end up 2 sMerits lower. But it might just as well be send to users who already had 0.5 sMerit, meaning a few more sMerit becomes available.
Just doubling it makes the calculations much easier, and the rounding depends on various circumstances anyway.

I got your sentiments. For a  big number "X",  2X-2 ,2X-1 and 2X  all have approximately same values so you can continue with 2X for sake of simplicity.

I am alive
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!