Give a closed expression for the function g(n) with the following behaviour:
g(n) =
0, n even}
n, n odd}
Answers
Answered by
2
we can write is as starting from o and took it to n even numbers sign of numbers are not mentioned so both positive and negative numbers will be included and at the end of even numbers we add odd numbers up to n
g(n)={0,2,4,6,8..............................n,1 ,3 ,5 ,7...................n}
Similar questions
English,
7 months ago
Science,
7 months ago
Social Sciences,
7 months ago
Geography,
1 year ago
English,
1 year ago