<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find the missing number</title>
	<atom:link href="http://cstechie.com/find-the-missing-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://cstechie.com/find-the-missing-number/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 10 Sep 2010 20:28:05 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: syam</title>
		<link>http://cstechie.com/find-the-missing-number/comment-page-1/#comment-7</link>
		<dc:creator>syam</dc:creator>
		<pubDate>Sat, 07 Nov 2009 06:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://cstechie.com/?p=55#comment-7</guid>
		<description>Problem 1:
Find sum of numbers from 1 to 1000 = 1000*1001/2 =500500 
Add the current array sum of 999 numbers = S
The missing number  = 500500-S

Problem 2:
Find the sum of numbers from 1 to 1000 = 1000*1001/2 = 500500 = S
Find sum of squares of numbers from 1 to 1000 = n*(n+1)*(2n+1)/6 = 333 833 500 = SS
Find sum of 998 distinct numbers as N
Find sum of squares of 998 distinct numbers as NS
Let a and b be 2 missing numbers
S-N=a+b
SS-NS=a^2+b^2
Solve for a and b.</description>
		<content:encoded><![CDATA[<p>Problem 1:<br />
Find sum of numbers from 1 to 1000 = 1000*1001/2 =500500<br />
Add the current array sum of 999 numbers = S<br />
The missing number  = 500500-S</p>
<p>Problem 2:<br />
Find the sum of numbers from 1 to 1000 = 1000*1001/2 = 500500 = S<br />
Find sum of squares of numbers from 1 to 1000 = n*(n+1)*(2n+1)/6 = 333 833 500 = SS<br />
Find sum of 998 distinct numbers as N<br />
Find sum of squares of 998 distinct numbers as NS<br />
Let a and b be 2 missing numbers<br />
S-N=a+b<br />
SS-NS=a^2+b^2<br />
Solve for a and b.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
