My Math Forum  

Go Back   My Math Forum > High School Math Forum > Elementary Math

Elementary Math Fractions, Percentages, Word Problems, Equations, Inequations, Factorization, Expansion


Thanks Tree13Thanks
Reply
 
LinkBack Thread Tools Display Modes
March 19th, 2018, 02:22 AM   #1
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 2

application of even and odd number

Hello
I am learning programming; what is application of even and odd number?

Last edited by skipjack; April 5th, 2018 at 09:46 AM.
integration is offline  
 
March 19th, 2018, 03:22 AM   #2
Senior Member
 
Joined: Jun 2015
From: England

Posts: 853
Thanks: 258

Although you have posted this in elementary maths I assume you know what even and an odd numbers are.

So you know some properties of each that are different?

You also mention that you are studying programming so I assume you are looking for applications in programming?

Programming is about the development of the logic of the situation. It follows precise rules.

So answering this question should help exercise your logical thinking processes.


Now every even number can be divided by 2 so every even number has at least one factor.

But only some odd numbers have factors.

This means that only even numbers can be guaranteed to be able to be divided into equal parts.
In particular in programming this is important in searching - one of the most important process in programming.

Because programmed systems spend a lot of time searching for stuff, it is important to make these searches as efficient as possible.

One efficient search method is called the binary search (hah did you spot binary means 2?)
Here we split the search into two halves and find which half contains the target.
Then we repeat.
And repeat
and repeat
Narrowing down the search until we find the target.

Does this help?
Thanks from integration
studiot is offline  
March 19th, 2018, 04:03 AM   #3
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 2

hi
this help me a lot sir.
and does it work with even odd signal
integration is offline  
March 19th, 2018, 09:36 AM   #4
Math Team
 
Joined: Oct 2011
From: Ottawa Ontario, Canada

Posts: 13,110
Thanks: 910

Quote:
Originally Posted by integration View Post
...and does it work with even odd signal
You're not "clear"

Do you mean an even number in an odd position?
Thanks from integration
Denis is offline  
March 19th, 2018, 11:25 PM   #5
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 2

i want to know where we use even number and odd number
integration is offline  
March 20th, 2018, 10:16 AM   #6
Newbie
 
Joined: Jan 2018
From: Seattle, WA

Posts: 20
Thanks: 6

Quote:
Originally Posted by integration View Post
hello
i am learning programming what is application of even and odd number
  • Flipping a coin
  • Sorting pages into front and back for a print operation
  • Categorizing results as match/mismatch with some expected value
Thanks from integration
AngleWyrm2 is offline  
March 20th, 2018, 10:24 AM   #7
Math Team
 
Joined: Oct 2011
From: Ottawa Ontario, Canada

Posts: 13,110
Thanks: 910

If you owe me $10 and pay me back, then we're "even"!
If you don't agree with me, then you're "at odds" with me
Thanks from Joppy and integration
Denis is offline  
March 21st, 2018, 01:53 AM   #8
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 2

Quote:
Flipping a coin
Sorting pages into front and back for a print operation
please explain more
integration is offline  
March 21st, 2018, 06:55 AM   #9
Senior Member
 
Joined: Apr 2014
From: UK

Posts: 883
Thanks: 323

Quote:
Originally Posted by integration View Post
please explain more
All of the odd pages are printed on the first side of the sheet, all the even pages are printed on the other side.
weirddave is offline  
March 21st, 2018, 07:52 AM   #10
Newbie
 
Joined: Jan 2018
From: Seattle, WA

Posts: 20
Thanks: 6

Quote:
Originally Posted by integration View Post
please explain more
Code:
PageCollection[2] sortedPages; // two sets of pages
for( int thisPage = 0; thisPage < GetPageCount(); thisPage++){
  sortedPages[ Mod(thisPage, 2) ].Add( GetPage(thisPage) );
}

Last edited by AngleWyrm2; March 21st, 2018 at 08:02 AM.
AngleWyrm2 is offline  
Reply

  My Math Forum > High School Math Forum > Elementary Math

Tags
application, number, odd



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Jmun Pre-Calculus 2 July 23rd, 2015 11:29 PM
natural number multiple of another number if its digit sum equal to that number Shen Elementary Math 2 June 5th, 2014 07:50 AM
Application of Vectors faiint Calculus 4 November 14th, 2012 03:58 PM
I had this come up on a job application? kfellmy Elementary Math 12 November 24th, 2011 08:33 PM
application to ax=b (mod m) tinynerdi Abstract Algebra 2 April 27th, 2010 09:08 AM





Copyright © 2018 My Math Forum. All rights reserved.