Re: [sage-devel] funny behaviour of Zmod

2022-09-06 Thread 'Doris Behrendt' via sage-devel
arrhhh sorry ;-) I actually stared at it for some time before posting to make sure that it's not a typo but did not see it > On 6. Sep 2022, at 09:19, dmo...@deductivepress.ca > wrote: > > You misspelled "multiplicative": you wrote "tl" instead of "lt". It works if > you spell it co

[sage-devel] Re: funny behaviour of Zmod

2022-09-06 Thread dmo...@deductivepress.ca
You misspelled "multiplicative": you wrote "tl" instead of "lt". It works if you spell it correctly: sage: Zmod(257)(4).multiplicative_order() 8 On Tuesday, September 6, 2022 at 1:03:14 AM UTC-6 dantetante wrote: > Hello list, > > could this (see below) be a bug? > When I try Zmod(17)(4).multipl

[sage-devel] funny behaviour of Zmod

2022-09-06 Thread 'Doris Behrendt' via sage-devel
Hello list, could this (see below) be a bug? When I try Zmod(17)(4).multiplicative_order(), I get 4 as expected. But not with 257 as modulus: sage: R=Zmod(257) sage: R(4) 4 sage: R(4).multiplicative_order() 8 sage: Zmod(257)(4).mutliplicative_order()