Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to factor an integer apparently including irrational numbers

I want to do prime factorization of following $a$

a=sqrt(2)+6-sqrt(2)
a.factor()

But sage says simply

6

What should I do?

(I originally wanted to factor (((3+sqrt(8))^(1i) +(3-sqrt(8))^(1i))/2) for i in [1..40])

How to factor an integer apparently including irrational numbers

I want to do prime factorization of following $a$

a=sqrt(2)+6-sqrt(2)
a.factor()

But sage says simply

6

What should I do?

(I originally wanted to factor (((3+sqrt(8))^(1i) +(3-sqrt(8))^(1i))/2) $((3+\sqrt{8})^i +(3-\sqrt{8})^i)/2$ for i in [1..40])

How to factor an integer apparently including irrational numbers

I want to do prime factorization of following $a$

a=sqrt(2)+6-sqrt(2)
a.factor()

But sage says simply

6

What should I do?

(I originally wanted to factor $((3+\sqrt{8})^i +(3-\sqrt{8})^i)/2$ $\frac{(3+\sqrt{8})^i +(3-\sqrt{8})^i}{2}$ for i in [1..40])