(38G) First Programme for HP 38G: Integer Partitions (Using Gauss' Method)

05202014, 06:01 PM
(This post was last modified: 06152017 01:35 PM by Gene.)
Post: #1




(38G) First Programme for HP 38G: Integer Partitions (Using Gauss' Method)
Edit: More easily readable & faster programme.
The programme's name is P4. Input a positive integer in the Home screen & actuate the programme. For input N = 6 the screen displays: p(6) 11 Exact to N = 180 Ans+1►N: MAKELIST(1,X,1,N,1)►L1: FOR I=2 TO N STEP 1; 1►H: 1►V: I1►K: 0►A: WHILE K>0 REPEAT A*V+L1(K)►A: FLOOR(2^V*H+1)►H: V►V: KH►K: END: ABS(A)►L1(I): END: ERASE: DISP 2;" p("N1"):": DISP 4;" "L1(N): DISP 6;"Exact to N = 180": BEEP 1953;.18: FREEZE: You may find this link: http://en.wikipedia.org/wiki/Partition_(number_theory) informative concerning partitions. 

03282015, 05:38 AM
Post: #2




RE: First Programme for HP 38G: Integer Partitions (Improved Programme)
Edit: Improved programme.


« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)