FRESHERSHOME![]() |
This is a discussion on What equation (sequence) would resolve any number into either odd or even? within the Numerical Ability forums, part of the Freshers Zone category; Hello all,I'm having trouble trying to figure out an equation that will categorize any number to either zero (for even ...
| |||||||
| Notices |
| Numerical Ability All Numerical Ability Related information and Q&A |
![]() |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hello all,I'm having trouble trying to figure out an equation that will categorize any number to either zero (for even numbers) and one (for odd numbers). For example:0 = 0 (even)1 = 1 (odd)2 = 0 (even)3 = 1 (odd)4 = 0 (even)5 = 1 (odd)6 = 0 (even)7 = 1 (odd)Any help would be much appreciated. Thanks!
__________________ Powered by Yahoo! Answers |
|
#2
| |||
| |||
| Well the typical way is to define a function that has two possible values. i.e.f(x) = 0 (for all x even)f(x) = 1 (for all x odd)This is a perfectly valid function.
__________________ Powered by Yahoo! Answers |
|
#3
| |||
| |||
| well if you take the square root of the even or odd number than the even number will be a whole number or irrational number if you know what i am saying you would know.
__________________ Powered by Yahoo! Answers |
|
#4
| |||
| |||
| The sequence a_n = (1 - (-1)^n)/2 does the job. Just check
__________________ Powered by Yahoo! Answers |
|
#5
| |||
| |||
| With the exception of zero, X-(X+1) would work. Zero would end up being odd even though it is neither odd nor even.
__________________ Powered by Yahoo! Answers |
|
#6
| |||
| |||
| n is even if and only if (-1)^n = 1 help, or no?
__________________ Powered by Yahoo! Answers |
![]() |
| Tags |
| equation number, odd or even |
| Thread Tools | |
| Display Modes | |
|
|
Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin
Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator
Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details