Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a simple math formula
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00683042
Message ID:
00683048
Vues:
23
This message has been marked as the solution to the initial question of the thread.
Use formula for the SUM of the arithmetic sequence:
(first_number+last_number)/2*(number of members).
So, in your case, it is just:

(1+ln)/2*ln

>Does anyone know a simple formuala to do the following:
>
>1 = 1
>2 = 3 (1+2)
>3 = 6 (1+2+3)
>4 = 10 (1+2+3+4)
>5 = 15 (1+2+3+4+5)
>.
>.
>.
>
>
>So if given the number 5, the formula would return the total addition, 15. Thanks in advance for any ideas.
>
>Mat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform