Okay guys a couple of threads back I was looking for a program that could factor down the equation in the form of ax²+bx+c, using the "solve the square" method. Basically, this is how it works:

7x²+8x+1

You multiply a and c, which gives you 7. Then you need to find the factor pair of this product whose sum is b, or 8. The answer is 7 and 1. so this is how it works from there.

7x²+7x+x+1

7x(x+1)+1(x+1)

=

(7x+1)(x+1)

Pretty basic, but for really crazy equations finding the correct factor pair of a and c is super tedious, especially when you are not allowed to use the quadratic formula and have to show your work. So I wanted a program where you input a, b, and c, and it finds the factor pair for you. I have a really rough version of the program, with thanks to Timothy Foster for creating the raw factoring section. I devised my own section to run through the created list. I have a huge problem though (with no fault going to Timothy).

I need the factors to use two lists, with one side of the factors on L1 and the other on L2. Problem is, the factoring program Timothy showed me lists all the factors in L1. Is there a way to divide the factors into L1 and L2 while still maintaining its factor-pair correspondence?

This is the code that I foolishly though would work:

```
PROGRAM:FACTOR
:ClrHome
:Prompt A,B,C
:AC→N
:{1,N //Timothy's work starts here
:For(I,2,√(N
:If not(fPart(N/I
:augment(Ans,{I,N/I
:End
:Ans→L₁
:SortA(L₁ //And stops here.
:For(O,1,dim(L₁ //And here starts sheer confusion on my part
:OP→T
:If T≠B
:Then
:End
:Else
:If T=B
:Then
:End
:End
:Disp O,P
```

As you can see, I have very little experience with using For loops in lists. Any novice can see this would result in a cataclysm. Would someone please help out? Thanks so much!

The man shuddered as the shadow drew a glistening sword from his back. Creeping closer and closer with his pale eyes burning into the man, the shadow slowly raised his blade and before he could thrust it down, the man heard the shadow hiss something.

"The Shadow Clan's presence must be like a whisper. Always felt, but never seen…"