Ask Your Question

ddwew's profile - activity

2019-07-29 19:19:32 +0200 commented question modular exponentiation for polynomial ring

I trying to implement alrorithm, and it's one of this step. I'm so sorry, I found that I was doing wrong (I was trying to factor polynomial and didn't notice that initial polynomial was not square free (f here is the factor with degree 2 in initial polynomial), so on one of the steps I'm facing with this). Thank all of you for you support and messages

2019-07-29 18:14:46 +0200 commented question modular exponentiation for polynomial ring

Please can you explain me how to use quotient ring in this case?

2019-07-29 18:13:35 +0200 commented question modular exponentiation for polynomial ring

Thank you for reply. Let's say n is around 73 binary digits. GF(P) seems to give the same result - I can't calculate f^n because it's too slow

2019-07-29 15:06:17 +0200 asked a question modular exponentiation for polynomial ring

Hello, I have the following:

p = 1119823

F.<x> = PolynomialRing(Integers(p))

f = F(x^6 + 1119810*x^5 + 60*x^4 + 1119733*x^3 + 1119688*x^2 + 567*x + 1119338)

I have big n and want to calculate f^n but I don't know how I can do It fast in Sage. I know that if I can find order of element f then I can do f^(n % f_order).But I don't know order and how find It in this case. So please explain me how I can calculate f^n fast?