how to describe this series in code?

Posted by clamp on Stack Overflow See other posts from Stack Overflow or by clamp
Published on 2010-04-14T08:38:09Z Indexed on 2010/04/14 8:42 UTC
Read the original article Hit count: 273

Filed under:

hello, i would like to find a forumla describing this series. i need to set a boolean depending on a positive integer. it's pretty simple but i am stuck and feel a bit stupid.

0 false
1 true
2 true
3 false
4 false
5 true
6 true
7 false
8 false
...

© Stack Overflow or respective owner

Related posts about Series