Multivariable equation in multiplicative group Z_p

asked 2017-09-29 08:19:36 -0500

dcole gravatar image

I am able to, in wolfram alpha, plug in the equation


where all numbers are in Z_151

and wolfram is able to give me a set of non-zero solutions (x,y) that I think satisfy (11*y^119, y)

I have tried using symbolic equations and the sage quickstart for number theory to replicate this functionality, but I am getting stuck on some integer conversion TypeErrors in sage.

I have tried to set it up like:

x,y = var('x,y');


Can someone help me set up this equation, and then solve for all possible non-zero solutions?


edit retag flag offensive close merge delete


To display inline code, use backticks. To display blocks of code or error messages, separate them by a blank line from the rest of the text, and indent them with 4 spaces, or select code lines and click the "code" button (the icon with '101 010').

For instance, typing

If we define `f` by

    def f(x, y):
        return (x, y)

then `f(2, 3)` returns `(2, 3)` but `f(2)` gives:

    TypeError: f() takes exactly 2 arguments (1 given)

will produce:

If we define f by

def f(x, y):
    return (x, y)

then f(2, 3) returns (2, 3) but f(2) gives:

TypeError: f() takes exactly 2 arguments (1 given)

Can you edit your question to do that?

slelievre gravatar imageslelievre ( 2017-09-30 12:29:27 -0500 )edit
dan_fulea gravatar imagedan_fulea ( 2017-09-30 16:50:06 -0500 )edit