Sunday, January 10, 2016

HP 15C: Row of Pascal’s Triangle

HP 15C:  Row of Pascal’s Triangle




Input:  The row n.

Registers Used: 

R0 = counter
R1 = n

Program:

Step
Key
Key Code
001
LBL A
42, 21, 11
002
STO 1
44, 1
003
3
3
004
10^X
13
005
÷
10
006
STO 0
44, 0
007
LBL 1
42, 21, 1
008
RCL 1
45, 1
009
RCL 0
45, 0
010
INT
43, 44
011
Cy,x (COMB)
43, 40
012
R/S
31
013
ISG 0
42, 6, 0
014
GTO 1
22, 1
015
RTN
43, 32


Examples:

Row 4 (n = 4): 1, 4, 6, 4, 1
Row 8 (n = 8): 1, 8, 28, 56, 70, 56, 28, 8, 1


This blog is property of Edward Shore. 2016



Spotlight: Akron Brass FireCalc Pocket Computer

Spotlight: Akron Brass FireCalc Pocket Computer Welcome to a special Monday Edition of Eddie’s Math and Calculator blog. Thi...