From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e3ba37c5a979fdcb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "isaac2004" Newsgroups: comp.lang.ada Subject: Re: invalid parameter list Date: 18 Feb 2006 16:06:17 -0800 Organization: http://groups.google.com Message-ID: <1140307577.816883.185870@g43g2000cwa.googlegroups.com> References: <1140218028.145204.141420@z14g2000cwz.googlegroups.com> <1140249851.389233.273980@g47g2000cwa.googlegroups.com> <1140297548.116832.212770@g43g2000cwa.googlegroups.com> <57OJf.45346$d5.201767@newsb.telia.net> NNTP-Posting-Host: 67.170.5.168 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1140307591 26064 127.0.0.1 (19 Feb 2006 00:06:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 19 Feb 2006 00:06:31 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=67.170.5.168; posting-account=bWy1LAwAAAAtVkasDCH0ykMCBMNd-FcL Xref: g2news1.google.com comp.lang.ada:2970 Date: 2006-02-18T16:06:17-08:00 List-Id: > there are no divisors of 1 or 0, >Then shouldn't the sum of their proper divisors be 0? Your function will return 1. >> the divisors of 9 is 7 ( 1+ 3+3) >The divisors of 9 are -9, -3, -1, 1, 3 and 9. The _proper_ divisors are 1 and 3. 1+3=4. so what should i do to my code to fix this, take out the C := C + 1 ; part i still dont understand how to test the sociable chain part and then finally write to a file, do i just go something like chains : File_Type; code Create(File => chains, Mode => Out_File, Name => "chains.txt") Put (File => chains, Item => Sociable_Chain ( Start, Max), Width => 0 ); is this right? can i plz get some code examples . thank you