Let An be the set of all decimal (base 10) positive n-digits integers, 1≤ n ≤ 20,
having the following properties:
The numbers of An consist only of 0s and 1s.
The numbers of An do not contain two adjacent 0s.
The numbers of An do not contain three adjacent 1s.
Example: n = 5, A5 = {10101, 10110, 11010, 11011}
Write a program that solves the following programming problem for a given value
of n.
Problem. Generate and display all numbers of An. Input data: n, 1≤ n ≤ 20.
Above is a project I need to work on.
I have no idea where to start.
Any ideas??
Appreciate it.