HP Forums
(12C) Gauss Sum Sequence - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (12C) Gauss Sum Sequence (/thread-11099.html)



(12C) Gauss Sum Sequence - Gamo - 07-20-2018 09:36 AM

Program to develop the Gauss sum sequences.

More detail on Gauss sum here
https://en.wikipedia.org/wiki/Gauss_sum

S is the sum of the series.
n is the number of terms in the series.

S = ( 1 + 2 + 3 + ........... + n )

Formula: S = n(n+1) ÷ 2

Example: f [REG]

99 [R/S] --> 4950 ---> 100 ---> 5050 ---> 101 ---> 5151 ...........

Developed sequence:
99 sum is 4950
100 sum is 5050
101 sum is 5151..... and keep on going, to stop press any button except [ON]
To continue simply press [R/S]

Program: Develop Gauss Sum Sequence
Quote:01 STO 0
02 RCL 0
03 PSE
04 1
05 +
06 RCL 0
07 x
08 2
09 ÷
10 PSE
11 PSE
12 RCL 0
13 1
14 STO+0
15 GTO 02

Gamo


RE: (12C) Gauss Sum Sequence - Gamo - 11-09-2018 11:54 AM

Little Gauss Sum program.

This small program might be good as an add-on to program that needed.

Example:

100 R/S 5050

Code:

01 ENTER
02  x
03 LSTx
04  +
05  2
06  ÷

Gamo