Ask Your Question

only1sale's profile - activity

2023-08-06 00:28:34 +0200 received badge  Popular Question (source)
2020-06-09 13:39:20 +0200 received badge  Scholar (source)
2020-06-09 13:38:55 +0200 commented answer Monomial with power modulo n

Thanks a lot! This is exactly what I needed.

2020-06-09 13:37:51 +0200 received badge  Supporter (source)
2020-06-09 12:36:33 +0200 received badge  Student (source)
2020-06-09 12:31:31 +0200 asked a question Monomial with power modulo n

I need to implement the following formal structure $$ax^\gamma, \gamma \in \mathbb{Z}/n\mathbb{Z}, a \in \mathbb{R}$$ and $x$ is a formal variable.

I tried

ZZ6 = Integers(6) x = var('x') x^ZZ6(9) + x^ZZ6(11)

And get value x^8, whereas I need x^ZZ6(8).

How can I do this in sage?