I need to know the factorization of numbers. Why? Well I am planning on writing a story called Math World and for the base population I have these gender and factor rules:
If male factors outweigh female factors(so like 4 male factors and 3 female factors), the number is male.
If female factors outweigh male factors, the number is female.
If male factors equal female factors, the number is hermaphroditic(both male and female).
If you take a male number to an integer power, you get a hermaphroditic number.
If you take a female number to an integer power, you get another female number.
Primes alternate between male and female(so like 2 is male, 3 is female and so on)
But this is only for the base population.
Anyway,I don't have a factorization program on my calculator. I need all the factors, not just prime factors. How can I do that?
Calculator model:
TI-84 Plus Silver Edition
Code:
:Input "TYPE NUMBER", X
:FOR(A,1,X)
:IF remainder(X,A)=0
:Disp A
:End
:End
:End
Here is the code that is giving me errors on my calculator. My calculator is in FUNC
mode, thus the X that I put in via the variable button(different variable for each mode).