Is there a simple way of finding all the combinations of 6 digits using only 0, 1 and 2?
So it starts like 000000
and finishes 222222
I have looked online but all i can find is the formula for finding how many there are but i need a list of all of them
If there is a code in R that will be even better
It is not completely neccessary but if there is a way to create a list where the 1st and 4th digit sum to a maximum of 2
, 2nd and 5th digit sum to a maximum of 2
and 3rd and 6th digit sum to a maximum of 2
Thankyou