As I said, I am a COMPLETE beginner at Java, as in I have never done a program in my life. However, I would like to better myself by learning this useful tool. I came across this problem that Im sure uses javascript. Could you please tell me the code to do this and possibly explain?
How many ways are there to choose a set from the following set of variables given that:
1) a set may NOT contain variables with the same letter OR the same subscript (eg, a set may not be {A_1, A_4,B_2} OR {B_2, E_2,})
2) Z may NOT be with A_1, B_2, or C_3
3) we can have an empty set or a set with any amount of variables in it, given the above restrictions hold true
The variables are {A_1, B_2, C_3, A_4, D_1, B_5, E_2, C_6, F_3, G_4, D_7, H_5, E_8, I_6, F_9, Z}
(16 variables in total)
Can someone PLEASE give me this code? I would really love to know this art, and especially this program!