Question: Arrange three 1 s , three 2 s , . . . , three 9 s in a list ( which therefore will consist of
Arrange three s three s three s in a list which therefore will consist of numbers
such that, for each i belongs to there are exactly i numbers between two successive occurrences in the list numbered i
Therefore, for example, could be a part of the final solution, while could not.
Solve the problem using SWIProlog, Create the Knowledge Base. Please test the two examples above and show the input and output. The first example should be true but the second example should be false.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
