How would I develop an 1-variable algorithm whose output is the sequence "even, even, odd, odd, ...". The magnitude is unimportant, only the even/odd of the number.
2006-09-23
09:54:17
·
4 answers
·
asked by
timmy_n
1
in
Science & Mathematics
➔ Mathematics
Sorry, let me elaborate more as I was in a hurry when I first put the question up. You are given a variable N, such that N = 1,2,3,4,...
Now, we will be taking -1^f(N) and we intend to get the following output:
1,1,-1,-1,1,1,-1,-1,...
What is f(N)?
2006-09-23
14:11:51 ·
update #1