Math, asked by john19991, 1 year ago

Give a closed expression for the function g(n) with the following behaviour:

g(n) =

0, n even}

n, n odd}

Answers

Answered by shoaibahmad131
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