Please specify how many positive integers display the following features:
a. The number is below 10^12.
b. It is a multiple of 225.
c. Its decimal representation involves only two distinct digits.
Provide a justification of your result..
(In reply to
re(2): Analytic solution by Larry)
This got me interested in Python as an alternative to Matlab. I did some experimenting in Google for Python, and found there are at least two online Python environments: online-python.com took about as long to run your Python program (with 9 and 10 as power) as did my Matlab version. But the programiz.com online Python environment had timings that closely matched yours (verbally counting chimpanzee-1, chimpanzee-2, to time it).
A friend is going to lend me a Python book next week.
|
Posted by Charlie
on 2022-04-30 07:29:52 |