Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Ifactors Calculator

Ifactors

Function: ifactors (<n>) For a positive integer <n> returns the factorization of <n>. If n=p1^e1..pk^nk is the decomposition of <n> into prime factors, ifactors returns [[p1, e1], ... , [pk, ek]].

ifactors(563);
mod(73,3);

Factorization methods used are trial divisions by primes up to 9973, Pollards rho method and elliptic curve method.

          (%i1) ifactors(51575319651600);
          (%o1)     [[2, 4], [3, 2], [5, 2], [1583, 1], [9050207, 1]]
          (%i2) apply("*", map(lambda([u], u[1]^u[2]), %));
          (%o2)                        51575319651600

(%o1)                                true
(%i2) 

Ifactors Example

Related Examples

ifactors-random

joukko:[30, 42, 70];

luku: joukko[random(3)];

ifactors(luku);

Calculate

ifactors-is-lambda-length-second-sublist

is( length( sublist(i...

ifactors(272);

Calculate

ifactors-random

var1: random(2500);

var2: ifactors(var1);

var2;

Calculate

ifactors-length

(length(ifactors(360)));

Calculate

ifactors

ifactors (2016);

Calculate

ifactors

ifactors(1919191238);

Calculate

ifactors-primep

primep(1325232112);

p:325231;

ifactors(p);

Calculate

ifactors-next_prime

p1:next_prime(1111111...

p2:next_prime(2133345...

p:p1*p2;

Calculate

ifactors-primep

primep(15318946);

p:131;

ifactors(p);

Calculate

ifactors

ifactors(9999999999971);

sqr(9999999999971);

Calculate