English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Develop an algorithm that will allow someone to look at a number written as a base five numeral and know wheter or not the number is even or odd without having to perform a division calculation and without converting the quantity to base ten and using our base ten algorithm.

2006-11-13 15:25:47 · 4 answers · asked by Perla S 1 in Science & Mathematics Mathematics

4 answers

Add the digits of the base 5 number. If the sum is even, the number is even. If the sum is odd, the number is odd.

Even simpler:
Count the number of odd digits in the number. (Ignore the even digits.) If the number of odd digits is odd, the number is odd, and if it's even the number is even.

2006-11-13 15:30:09 · answer #1 · answered by actuator 5 · 1 0

Take the number written in base 5. Count the number of Odd digits. If there are an odd number of odd digits the number is odd in base 10 if there is an even number of odd digits it is an even number in base ten.

Looks like actuator beat me to the punch.

2006-11-13 15:31:05 · answer #2 · answered by georgephysics13 3 · 0 0

I=one million , V=5 , X=10 , L=50 , C=a hundred , D=500 , M=1000 ninety 5 = VC (a hundred-5) ninety 9 = IC (a hundred-one million) whilst the small Roman Numeral (e.g. X) is on the left hand area of the huge Roman Numeral (e.g. D) , which potential the relation of them is to subtract the small Roman Numeral from the huge Roman Numeral: XD = 490 (500-10)

2016-10-17 06:13:00 · answer #3 · answered by kigar 4 · 0 0

Sounds like you want us to do your homework for you.

This means you dont learn by yourself.

Make an attempt for yourself and Ill correct it for you.

2006-11-13 15:46:03 · answer #4 · answered by rostov 5 · 0 1

fedest.com, questions and answers