# Stuttering calculator

Ok, take your average desk calculator.

type :  10 / 3 = = = =

Any reasonable explanation for the sequence you get?

LVL 22
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Clearly 10 is being repeatedly by 3. For binary operations eg a*b,  a/b, this is the way I think it works.  I believe they have 2 registers holding the left hand value (displayed) and 1 holding the right hand. When = is hit  (left) operator (right) is evaluated and placed in the display (ie the  left register) and the right  is unchanged. Repeatedly hitting = continuously divides the display value by the right value in this case 3
0
Author Commented:
yesbut how to explain the interesting numbes that pop up:

3.3333333333333333333333333333333

1.1111111111111111111111111111111

0.37037037037037037037037037037037

0.12345679012345679012345679012346

0
Commented:
What's so special about that. Your last lint is missing an 8.

Seriously, you have found an interesting set of digits. I do not beleive there is any special reasoning behind them.
It is interesting to note that whenever you divide two intergers you will get an answer in which the digits will eventually repeat themselves.
0
Commented:
its simpler, just divide 10 / 81 ;-)))
0
Commented:
but you miss the other interesting strings
0
Commented:
0,098765432098765432098765432098765... = 8 / 81 ;-)))
0
Commented:
can be shown that the length of the repeating substring in <<1 / n>> is a divisor of the totient of <<n>>

in this case, <<9>> is a divisor of <<Phi( 81 ) = 81 - 27 = 54>>
0
Commented:
some primes <<p>> have the longest repeating substring <<p - 1>>, being <<7>> the smallest one
<<1 / 7 = 0,14285714285714285714285714285714...>>
0
Commented:
It's easy to see why these patterns occur if you try them using log division.
0
Commented:
It's easy to see why these patterns occur if you try them using LONG division.
0
Author Commented:
some primes <<p>> have the longest repeating substring <<p - 1>>, being <<7>> the smallest one
<<1 / 7 = 0,14285714285714285714285714285714...>>

IIRC:
What's even more interesting, TWO sevenths is: .285714285714....., FOUR sevents is .57142857....

0
Commented:
Multiply 37,037 by any single number (1-9), then multiply that number by 3. Every digit in the answer will be the same as that first single number. (this is failry easy to work out but still cute)
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
Thanks for the points :-)
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Math / Science

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.