Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How can I solve the diophanting equations by C ?

+4 votes
asked Feb 1, 2025 by Abdullah Shafi (340 points)

1 Answer

+1 vote
answered Feb 3, 2025 by Peter Minarik (101,340 points)
edited Feb 3, 2025 by Peter Minarik

First of all, you'll solve it on paper.

After you understand how to solve it, you write a program for it.

There are infinitely many Diophantine equations, so writing a generic solver for all of them would be quite a task.

Probably it would involve solving all the kinds of groups and recognising which group a given equation falls into first.

Are you sure you need to be able to solve any given Diophantine equation and not just a subset of the whole problem domain?

commented Feb 3, 2025 by Abdullah Shafi (340 points)
please writw code
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...