Message from discussion
numerical challenge
Received: by 10.66.86.6 with SMTP id l6mr3664367paz.11.1350965052544;
Mon, 22 Oct 2012 21:04:12 -0700 (PDT)
Path: s9ni34365pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 22 Oct 2012 23:04:11 -0500
Date: Tue, 23 Oct 2012 00:04:23 -0400
From: Phil Hobbs <pcdhSpamMeSensel...@electrooptical.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
Newsgroups: sci.math,rec.puzzles,alt.math.recreational,sci.electronics.design
Subject: Re: numerical challenge
References: <384e8e6c-7de0-4386-a91b-5ceb9f87deb0@v11g2000pbs.googlegroups.com> <Y6GdnTM7_JApZhjNnZ2dnUVZ_vGdnZ2d@supernews.com> <4f4921cb-8482-48a9-ae44-60d9dd5ad181@v19g2000pbt.googlegroups.com>
In-Reply-To: <4f4921cb-8482-48a9-ae44-60d9dd5ad181@v19g2000pbt.googlegroups.com>
Message-ID: <VsGdnSw8l5-mihvNnZ2dnUVZ_smdnZ2d@supernews.com>
Lines: 49
X-Trace: sv3-T5YZVHX67tzyoInOMzu9cd4NzI3w/h7hFOu4CFVoWDW8y6EKOkiKuU9a1AELHlFoJfwPZkhi/JG1ZTt!G4gWpultt9WWLchWpIM8GvUhj/N9vWAYNdactzke3WSWYF/ZQcSqKDB09kiLngnmy2Mxw2jTRY6m!pQXUmxuEwA==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 2564
X-Original-Bytes: 2503
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 10/22/2012 11:36 PM, RichD wrote:
> On Oct 22, Phil Hobbs <pcdhSpamMeSensel...@electrooptical.net> wrote:
>>> I saw this posed as an interview question:
>>> (usual exponent notation)
>>> What are the last 3 digits of 171 ^ 172?
>>
>>> Presumably, one is given pen and paper.
>>> Is there a trick here? The second digit isn't too tough,
>>> but the third is a lot of work.
>>
>> If you interpret it in C, 171 XOR 172, it's not that hard:
>>
>> 171 = 160+11 = 0xAB
>> 172 = 160+12 = 0xAC
>>
>> 0xB = 0b1011
>> 0xA = 0b1010
>> so 171 ^ 172 = 1.
>
> huh?
>
>> If you interpret it as taking the 172nd power of 171, you could be there
>> awhile.
>
> I think you flunked the interiew.
>
> --
> Rich
>
I'm glad about that. I prefer working on fun stuff, of which I have
lots at the moment.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510 USA
+1 845 480 2058
hobbs at electrooptical dot net
http://electrooptical.net