• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to calculate/process this one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to calculate/process this one?


  • Subject: Re: How to calculate/process this one?
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 27 Apr 2002 10:00:54 -0700

On 4/27/02 9:42 AM, "Arthur J Knapp" <email@hidden> wrote:

>> Let's say I have a random number like 11050. Now I want to add each pair
>> of consecutive digits to give the next line (so 11050 becomes 2155). I
>> want to repeat this step until I have a two-digit number.

> I don't understand, how does 11050 become 2155 ???

He's adding every single (overlapping) adjacent pair.

1 + 1 = 2 -- digits 1 and 2
1 + 0 = 1 -- digits 2 and 3
0 + 5 = 5
5 + 0 = 5

The only reason he number of digits is reduced is because of all those 0 and
1 digits keeps the individual sums less than 10. if he's started out with

99599

9 + 9 = 18
9 + 5 = 14
5 + 9 = 14
9 + 5 = 18

we now have an 8-digit number 18141418.

The next number would be 9955559. Then you'd get 181410101014. Then
9955111115. Then 181410622226. I don't think it's ever going to reduce to 1
digit, although I wouldn't like to have to prove that.

The whole idea that you could reduce the length while trying to concatenate
_additions_ which increase the numbers of digits every time he sum is
greater than 10 is - well, I'm not going to use the word that comes to mind.


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to calculate/process this one?
      • From: Malcolm Fitzgerald <email@hidden>
    • Re: How to calculate/process this one?
      • From: Michelle Steiner <email@hidden>
    • Re: How to calculate/process this one?
      • From: email@hidden (Michael Sullivan)
References: 
 >Re: How to calculate/process this one? (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: Exponential notation [was: Re: How to calculate/process this one?]
  • Next by Date: Re: How to calculate/process this one?
  • Previous by thread: Re: How to calculate/process this one?
  • Next by thread: Re: How to calculate/process this one?
  • Index(es):
    • Date
    • Thread