• Aucun résultat trouvé

1 × 3 3 + 2 × 3 2 + 2 × 3 1 + 1 × 3 0, whih is equal to 52. Obviously, in the base-3 (also alled ternary) systemweneed only three digits,

N/A
N/A
Protected

Academic year: 2022

Partager "1 × 3 3 + 2 × 3 2 + 2 × 3 1 + 1 × 3 0, whih is equal to 52. Obviously, in the base-3 (also alled ternary) systemweneed only three digits, "

Copied!
1
0
0

Texte intégral

(1)

Épreuve de setion européenne

Balaned Ternary

Weusually representnumbersin the base-10positional system, where onehundredtwenty-

one iswritten 139,beauseitisequalto

1 × 10 2 + 3 × 10 1 + 9 × 10 0

. Usingthesamepriniple in abase-3system,1221representsthedeimalnumber

1 × 3 3 + 2 × 3 2 + 2 × 3 1 + 1 × 3 0

, whih is equal to 52. Obviously, in the base-3 (also alled ternary) systemweneed only three digits,

namely0,1and2,andithasbeenprovedthatthissystemisalmostalwaysthemosteonomial

one,asfarasomputationaleienyisonerned.

In balaned ternary,eah digitan beanegativeunit (denoted

N

), azero(

0

), orapositive unit(

1

). Theyarebalanedbeausetheyarearrangedsymmetriallyaboutzero.

Asanexample,thedeimalnumber19iswritten

1 N 01

inbalanedternary,andthisnumeral isinterpretedasfollows:

1 × 3 3 − 1 × 3 2 + 0 × 3 1 + 1 × 3 0

orinotherwords

27 − 9 + 0 + 1

. Every number,bothpositiveandnegative,anberepresentedinthissheme,andeahnumberhasonly

onesuhrepresentation. Thebalanedternaryountingsequenebegins: 0,1,

1 N

,10,11,

1 N N

.

Going inthe opposite diretion,therstfew negativenumbersare

N

,

N 1

,

N 0

,

N N

. Notethat

negativevaluesareeasytoreognizebeausetheleadingdigitisalwaysnegative.

What makes balaned ternary so pretty? It is a notation in whih everything seems easy.

Positiveandnegativenumbersareunitedinonesystem,withoutthebotherofseparatesignbits.

Arithmetiisnearlyassimpleasitiswithbinarynumbers;inpartiular,themultipliationtableis

easilybuilt. Additionandsubtrationareessentiallythesameoperation: Justnegateonenumber

andthenadd. Negationitself isalsoeortless: Changeevery

N

intoa1,andvieversa.

InspiredbyGlusker,Hogan&Vass,TheternaryalulatingmahineofThomasFowler,

IEEEAnnals ofthe Historyof Computing,27-3,2005andothersoures.

Questions

1. Explain the balaned ternary ounting sequene and ontinue writing it up to the 10th

numeral. Inthesamemanner,explainthenegativenumbersequeneandwriteittothe8th

negativenumeral.

2. Writethebalanedternarynumber

1 N 10

inbase-10.

3. Writethedeimalnumber52inbalanedternary.

4. Whih propertyofbalanedternaryisespeiallyusefulformoneyomputations?

5. Build the additionand multipliationtables in balaned ternarynumerationsystem(hint:

hekthat

1 + 1

is

1 N

;

N + N

is

N 1

).

6. Usethesetables todothefollowingoperations:

1 N 01 + 11 N 0

;and

1 N 11 × 1 N 0

.

Références

Documents relatifs

A l’aide d’un tableur, construit les diagrammes représentant la température et les précipitations sur l’ile Heard.. Quelle est l’étendue

- Tracer un angle de sommet G et qui mesure 55° (Placer le centre du rapporteur sur le sommet G et aligner une des deux graduations zéro du rapporteur sur le côté [BG) ).. - Sur

construire une petite boîte pour mettre les petits cailloux perdus au cours de la partie qui peuvent être récupérés par un joueur chanceux et la poser à côté du plateau de

(Collagenous OR lymphocytic) colitis 1814 réf.. Qui peut le moins peut

Deux aspects de ce développement démographique sont de grande importance pour la géopolitique de la région : la vitesse à laquelle la Chine va voir sa population vieillir et

Placez les points dans le repère ci-dessous et complétez la figure au fur et à mesure de l’exercice.. Déterminez les coordonnées de D tel que ABCD soit

Document 9 – Passage onirique en quatre couloirs,

Factoriser, si possible, ce quotient.. 2°) Utiliser la méthode de Hörner pour mettre P(x) sous la forme d’un produit de 4 facteurs du premier