News:

Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!

Main Menu

[TI-83] Various Number Theory Things

Started by rabbit, May 10, 2006, 09:02:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rabbit

TI-83 lacks a few things helpful for Number Theory, so I added them in during a free today, thought they may be helpful to others:

prgmMODULUS
Used to find even divisibility (VERY HELPFUL!).  This is a requirement for other programs below.
:If F:Then
:E/F->G
:F*(G-int(G))->G
:If G<0:G+F->G
:Else
:0->G
:End

Result: 0 F divides E evenly (ie: F = 2, E = 10).
remainder otherwise.

prgmSUMFACTS
Sums all factors (divisors) of a given number, 1 and the number inclusive.  Useful in finding k-perfect numbers.
:Input "NUM=",A
:0->K
:For(I,1,A+1)
:A->E
:I->F
:prgmMODULUS
:If G=0
:K+I->K
:End
:Disp K


prgmFACTOR
Displays all factors of a number, 1 and number exclusive
:Input "NUM=",A
:0->K
:For(I,1,A+1)
:A->E
:I->F
:prgmMODULUS
:If G=0
:Disp I
:End


prgmPF
Launcher for prgmPRMEFACT
:ClrHome
:Input "NUM=",A
:prgmPRMEFACT


prgmPRMEFACT
Displays the prime factorization (kind of) of a number
:2->I
:While I<A
:A->E
:I->F
:prgmMODULUS
:If G=0:Then
:Disp I
:A/I->A
:Else
:I+1->I
:End
:End
:Disp A

deadly7

Neat.  I like the last one the most.

Why are you using an 83?  They're terrible calculators.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Sidoh

Quote from: deadly7 on May 11, 2006, 01:36:24 AM
Neat.  I like the last one the most.

Why are you using an 83?  They're terrible calculators.

...

Nice, rabbit.  I doubt I'll ever have much use to do number theory on a graphing calculator (with the stuff I've done, I've used my computer), but I'll keep them in mind. :P

rabbit

Quote from: deadly7 on May 11, 2006, 01:36:24 AM
Neat.  I like the last one the most.

Why are you using an 83?  They're terrible calculators.
We haven't been allowed 83's in NT, we've been using TI-06's all year (the blue ones for like, 3rd graders), but even those have a mod button (INT/) :\

Joe

I don't have my TI-83 handy at the moment (it's at school) but I could have sworn there was a mod function in the catalog.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


MyndFyre

I got to use an 89 in college calc.  :D
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

rabbit

Yeah.  Sang (a Korean, no doubt!) has an 89 and is in our class.  The 89 is what inspired me..

Nate


deadly7

I have an 86 and I can use my brother's 89 whenever I want. :D!
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine