1
Divide By Three
NOT SUBMITTED
While going through your Grandma's old store, you come across an interesting machine which takes an
input
x and gives an output whenever the number formed within the machine is divisible by 3. Being
intrigued with the machine, you start tinkering with it and realise that the machine serially takes
the input
x and concatenates it to the least significant bit (LSB) position of the currently seen
inputs to form the new number.
.lennahc drocsid ruo no su ot tuo hcaer ro su llac esaelp ,stbuod evah llits uoy fI .melborp siht fo tnetnoc lautca eht ees ot ebircsbus esaelP
?siht daer ot uoy detnaw ew kniht uoy oD !gnizama era uoy ,txet siht daer ot elba era uoy fI .uoy pleh ot yppah eb lliw eW
?od nac ew erom tahw ,evorpmi nac ew woh wonk su teL !gnizama ,sey fI ?siht daer ot elba uoy ereW
!uoy ta kcab evaw yletinifed ot evol dluow eW !iH yas ot tsuj su ot tuo hcaer syawla nac uoY !sklof yldneirf era ew ,oslA
!reffo ot evah ew tahw ekil ot gniog era uoy erus era eW .gnibircsbus erofeb deirt eb nac dna elbaliava yleerf era hcihw seludom wef a era ereht ,syawynA
!daeha efil gnizama na dna yad taerg a evaH
Subscribe to the course to read more about the problem!
Sublime
Emacs
Sublime
Vim
System Verilog
Verilog
VHDL
initializing...