Re: it is my homework help me
- From: "junoexpress" <MTBrenneman@xxxxxxxxx>
- Date: 14 Dec 2006 14:57:43 -0800
ediptkc wrote:
In numerology, a number of the form 2^n a that contains the beast
number 666 among its sequence of decimal digits is known as an
apocalyptic number. Write a simple procedure that lists the first m
exponents that generate apocalyptic numbers. What are the first 10
apocalyptic numbers?
Mathematica has a blurb about these numbers
http://mathworld.wolfram.com/ApocalypticNumber.html
They list the first few, but really say nothing more. A quick Google
search shows nothing else out there really useful, so it does not seem
that there is some nice formula to use. One thing you can do is just
start generating value of 2^n, keep a counter of the number of
apocalyptc nums you find, and do a string search on the numbers you
generate (or there are other ways) to test them. In fact, if you know
the precision Mathematica has, which usually is in base 2 form already,
and then run a loop backwards.
BTW, the Mthematica blurb does give a reference that contains the
numbers, so that might help/give you some insight into writing the code
(or whether it is even possible)
Good luck,
Matt
.
- Follow-Ups:
- Re: it is my homework help me
- From: christian.bau
- Re: it is my homework help me
- References:
- it is my homework help me
- From: ediptkc
- it is my homework help me
- Prev by Date: Re: problem involving lipschitz condition
- Next by Date: Re: Cantor Confusion
- Previous by thread: Re: it is my homework help me
- Next by thread: Re: it is my homework help me
- Index(es):