Jump to content

Geometric progression?


iCeR

Recommended Posts

Hi,

 

I'm working on a referral system - the formula is exactly like the pyramid/ponzi scheme.

 

The system works like this:

 

The initial user signs up (tier 1)

The initial user refers 3 friends (tier 2)

Each of those 3 friends refer another 3, (tier3)

etc.

 

What would be the mathematical formula for that? (I think it's called geometric progression)

 

How could I code up something in PHP where I could enter a number and it will then give me the number of tiers it has gone down and a semi-visual.

 

ie: I enter 13 - it displays the text "3 tiers" and then displays

 

     o
     |
    ooo
   / | \
ooooooooo

Link to comment
https://forums.phpfreaks.com/topic/231290-geometric-progression/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.