For the second question, it alternates between 0 and 2, so it's the modulus of 2 minus the previous value.
0-2 = -2... |-2| = 2
2-2 = 0
thread you are simple just being rude and unappreciative, Sean is offering you very good help and your as opposed to thanking him you're simply being rude, your attitude goes against what a forum like this stands for. I suggest you seek some paid tuition service where "experienced" people will help on demand as with your current attitude I cannot imagine people on this forum will want to help you (myself included).